summaryrefslogtreecommitdiff
path: root/chromium/base/message_loop/incoming_task_queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/message_loop/incoming_task_queue.h')
-rw-r--r--chromium/base/message_loop/incoming_task_queue.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/chromium/base/message_loop/incoming_task_queue.h b/chromium/base/message_loop/incoming_task_queue.h
index 861f0fc1796..f158d2a93ff 100644
--- a/chromium/base/message_loop/incoming_task_queue.h
+++ b/chromium/base/message_loop/incoming_task_queue.h
@@ -77,9 +77,6 @@ class BASE_EXPORT IncomingTaskQueue
TimeDelta delay,
Nestable nestable);
- // Returns true if the message loop is "idle". Provided for testing.
- bool IsIdleForTesting();
-
// Disconnects |this| from the parent message loop.
void WillDestroyCurrentMessageLoop();
@@ -109,8 +106,9 @@ class BASE_EXPORT IncomingTaskQueue
// maintaining three queue queues to process tasks:
//
// TriageQueue
- // The first queue to receive all tasks for the processing sequence. Tasks are
- // generally either dispatched immediately or sent to the queues below.
+ // The first queue to receive all tasks for the processing sequence (when
+ // reloading from the thread-safe |incoming_queue_|). Tasks are generally
+ // either dispatched immediately or sent to the queues below.
//
// DelayedQueue
// The queue for holding tasks that should be run later and sorted by expected
@@ -226,8 +224,8 @@ class BASE_EXPORT IncomingTaskQueue
// Number of high resolution tasks in the sequence affine queues above.
int pending_high_res_tasks_ = 0;
- // Lock that protects |message_loop_| to prevent it from being deleted while
- // a request is made to schedule work.
+ // Lock that serializes |message_loop_->ScheduleWork()| calls as well as
+ // prevents |message_loop_| from being made nullptr during such a call.
base::Lock message_loop_lock_;
// Points to the message loop that owns |this|.
@@ -242,7 +240,7 @@ class BASE_EXPORT IncomingTaskQueue
// An incoming queue of tasks that are acquired under a mutex for processing
// on this instance's thread. These tasks have not yet been been pushed to
- // |message_loop_|.
+ // |triage_tasks_|.
TaskQueue incoming_queue_;
// True if new tasks should be accepted.