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

Unified Diff: base/threading/sequenced_worker_pool.h

Issue 9401032: Make SequencedWorkerPool a TaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « base/task_runner_unittest.cc ('k') | base/threading/sequenced_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/sequenced_worker_pool.h
diff --git a/base/threading/sequenced_worker_pool.h b/base/threading/sequenced_worker_pool.h
index 2f2cfe5cf667a7d118db2b65591f1f4632fc93c2..046b7a70b792bfc1baae27bd3effdabed86a168e 100644
--- a/base/threading/sequenced_worker_pool.h
+++ b/base/threading/sequenced_worker_pool.h
@@ -12,6 +12,7 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
+#include "base/task_runner.h"
namespace tracked_objects {
class Location;
@@ -135,6 +136,10 @@ class BASE_EXPORT SequencedWorkerPool {
// will be created.
SequenceToken GetNamedSequenceToken(const std::string& name);
+ // Returns a TaskRunner which posts (unseqenced) tasks on this
willchan no longer on Chromium 2012/02/19 06:37:01 unsequenced
akalin 2012/02/22 22:39:11 Rendered moot (since this function doesn't exist a
+ // worker pool with BLOCK_SHUTDOWN.
+ scoped_refptr<TaskRunner> GetTaskRunner();
+
// Posts the given task for execution in the worker pool. Tasks posted with
// this function will execute in an unspecified order on a background thread.
// Returns true if the task was posted. If your tasks have ordering
« no previous file with comments | « base/task_runner_unittest.cc ('k') | base/threading/sequenced_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698