diff options
author | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-28 06:13:26 +0000 |
---|---|---|
committer | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-28 06:13:26 +0000 |
commit | b242fb380ff5c11a4ec48ffbe1d0f346d9ab2ee3 (patch) | |
tree | 4bdc6527edd04cdbfb68655da3038a4ab8ae5a7e /base/message_loop/message_loop.h | |
parent | 462ceb0a79acbd01421795bf2391643ca6d73f78 (diff) | |
download | chromium_src-b242fb380ff5c11a4ec48ffbe1d0f346d9ab2ee3.zip chromium_src-b242fb380ff5c11a4ec48ffbe1d0f346d9ab2ee3.tar.gz chromium_src-b242fb380ff5c11a4ec48ffbe1d0f346d9ab2ee3.tar.bz2 |
Removing TryPostTask functionality
This is mostly a logical revert of
https://chromiumcodereview.appspot.com/14387002/
Because nobody uses it anymore. At that time there was
resistance about having this but there was a client (the audio code)
that wanted something like this to avoid polling. I don't know what
the audio code does (I so hope is not polling) but certainly is
not using this.
Also see
http://www.youtube.com/watch?v=BQ4yd2W50No
TBR=darin
BUG=none
TEST=none
Review URL: https://codereview.chromium.org/114333006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop/message_loop.h')
-rw-r--r-- | base/message_loop/message_loop.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h index e307d36..29e0f7e 100644 --- a/base/message_loop/message_loop.h +++ b/base/message_loop/message_loop.h @@ -210,18 +210,11 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { // PostTask(from_here, task) is equivalent to // PostDelayedTask(from_here, task, 0). // - // The TryPostTask is meant for the cases where the calling thread cannot - // block. If posting the task will block, the call returns false, the task - // is not posted but the task is consumed anyways. - // // NOTE: These methods may be called on any thread. The Task will be invoked // on the thread that executes MessageLoop::Run(). void PostTask(const tracked_objects::Location& from_here, const Closure& task); - bool TryPostTask(const tracked_objects::Location& from_here, - const Closure& task); - void PostDelayedTask(const tracked_objects::Location& from_here, const Closure& task, TimeDelta delay); @@ -424,11 +417,6 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate { // Returns true if the message loop is "idle". Provided for testing. bool IsIdleForTesting(); - // Takes the incoming queue lock, signals |caller_wait| and waits until - // |caller_signal| is signalled. - void LockWaitUnLockForTesting(WaitableEvent* caller_wait, - WaitableEvent* caller_signal); - //---------------------------------------------------------------------------- protected: |