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

Unified Diff: base/threading/worker_pool_posix.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: remove RunsTasksOnCurrentThread() overrided. 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_posix.cc
diff --git a/base/threading/worker_pool_posix.cc b/base/threading/worker_pool_posix.cc
index 851480adda1002843e6c4eb2eb24738ae5a5b8de..17c738b7050e558b134091432b9f9dc6d3f51ec1 100644
--- a/base/threading/worker_pool_posix.cc
+++ b/base/threading/worker_pool_posix.cc
@@ -126,6 +126,10 @@ bool WorkerPool::RunsTasksOnCurrentThread() {
return g_worker_pool_running_on_this_thread.Get().Get();
}
+bool WorkerPool::RunsTasksInCurrentSequence() {
gab 2017/04/18 15:00:33 // static above.
+ return g_worker_pool_running_on_this_thread.Get().Get();
+}
+
PosixDynamicThreadPool::PosixDynamicThreadPool(const std::string& name_prefix,
int idle_seconds_before_exit)
: name_prefix_(name_prefix),

Powered by Google App Engine
This is Rietveld 408576698