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/incoming_task_queue.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/incoming_task_queue.h')
-rw-r--r-- | base/message_loop/incoming_task_queue.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/base/message_loop/incoming_task_queue.h b/base/message_loop/incoming_task_queue.h index d831a71..56c5638 100644 --- a/base/message_loop/incoming_task_queue.h +++ b/base/message_loop/incoming_task_queue.h @@ -38,12 +38,6 @@ class BASE_EXPORT IncomingTaskQueue TimeDelta delay, bool nestable); - // Same as AddToIncomingQueue() except that it will avoid blocking if the lock - // is already held, and will in that case (when the lock is contended) fail to - // add the task, and will return false. - bool TryAddToIncomingQueue(const tracked_objects::Location& from_here, - const Closure& task); - // Returns true if the message loop has high resolution timers enabled. // Provided for testing. bool IsHighResolutionTimerEnabledForTesting(); @@ -51,11 +45,6 @@ class BASE_EXPORT IncomingTaskQueue // 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); - // Loads tasks from the |incoming_queue_| into |*work_queue|. Must be called // from the thread that is running the loop. void ReloadWorkQueue(TaskQueue* work_queue); |