diff options
Diffstat (limited to 'base/threading/worker_pool.h')
-rw-r--r-- | base/threading/worker_pool.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/threading/worker_pool.h b/base/threading/worker_pool.h index d97dbd6a69..d1c666d2f9 100644 --- a/base/threading/worker_pool.h +++ b/base/threading/worker_pool.h @@ -32,15 +32,15 @@ class BASE_EXPORT WorkerPool { // false if |task| could not be posted to a worker thread. Regardless of // return value, ownership of |task| is transferred to the worker pool. static bool PostTask(const tracked_objects::Location& from_here, - Closure task, + OnceClosure task, bool task_is_slow); // Just like TaskRunner::PostTaskAndReply, except the destination // for |task| is a worker thread and you can specify |task_is_slow| just // like you can for PostTask above. static bool PostTaskAndReply(const tracked_objects::Location& from_here, - Closure task, - Closure reply, + OnceClosure task, + OnceClosure reply, bool task_is_slow); // Return true if the current thread is one that this WorkerPool runs tasks |