Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(877)

Unified Diff: base/message_loop.h

Issue 172101: Move MessageLoop TaskQueues to pointers.
Patch Set: scoped_ptr swap. Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.h
diff --git a/base/message_loop.h b/base/message_loop.h
index 395ce6ed31d20ef0a54a608eba293740f744cfe5..ea172900a7025b3292de67651bee343d4cd7e202 100644
--- a/base/message_loop.h
+++ b/base/message_loop.h
@@ -365,7 +365,7 @@ class MessageLoop : public base::MessagePump::Delegate {
// A list of tasks that need to be processed by this instance. Note that
// this queue is only accessed (push/pop) by our current thread.
- TaskQueue work_queue_;
+ scoped_ptr<TaskQueue> work_queue_;
// Contains delayed tasks, sorted by their 'delayed_run_time' property.
DelayedTaskQueue delayed_work_queue_;
@@ -393,7 +393,7 @@ class MessageLoop : public base::MessagePump::Delegate {
// aquired under a mutex for processing on this instance's thread. These tasks
// have not yet been sorted out into items for our work_queue_ vs items that
// will be handled by the TimerManager.
- TaskQueue incoming_queue_;
+ scoped_ptr<TaskQueue> incoming_queue_;
// Protect access to incoming_queue_.
Lock incoming_queue_lock_;
« no previous file with comments | « no previous file | base/message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698