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 |