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

Unified Diff: base/threading/worker_pool.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: fixed build error and commments Created 3 years, 8 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
Index: base/threading/worker_pool.cc
diff --git a/base/threading/worker_pool.cc b/base/threading/worker_pool.cc
index 26ff10f1f538fe820ad0d3a7fb0fbb9484a2f54d..4bfb9ce98c672667ac4f3d2b3143bb3f89be5e20 100644
--- a/base/threading/worker_pool.cc
+++ b/base/threading/worker_pool.cc
@@ -47,7 +47,7 @@ class WorkerPoolTaskRunner : public TaskRunner {
bool PostDelayedTask(const tracked_objects::Location& from_here,
OnceClosure task,
TimeDelta delay) override;
- bool RunsTasksOnCurrentThread() const override;
+ bool RunsTasksInCurrentSequence() const override;
private:
~WorkerPoolTaskRunner() override;
@@ -78,7 +78,7 @@ bool WorkerPoolTaskRunner::PostDelayedTask(
return PostDelayedTaskAssertZeroDelay(from_here, std::move(task), delay);
}
-bool WorkerPoolTaskRunner::RunsTasksOnCurrentThread() const {
+bool WorkerPoolTaskRunner::RunsTasksInCurrentSequence() const {
return WorkerPool::RunsTasksOnCurrentThread();
}

Powered by Google App Engine
This is Rietveld 408576698