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

Unified Diff: base/task_runner.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase 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
« no previous file with comments | « base/task_runner.h ('k') | base/task_scheduler/scheduler_single_thread_task_runner_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_runner.cc
diff --git a/base/task_runner.cc b/base/task_runner.cc
index c3e0574a1bf0c0bf5633f37fd01453657fdbc1be..5d85093b1d657f9c1b04ed56db529cfeb0b0a3c1 100644
--- a/base/task_runner.cc
+++ b/base/task_runner.cc
@@ -54,6 +54,10 @@ bool TaskRunner::PostTaskAndReply(const tracked_objects::Location& from_here,
from_here, std::move(task), std::move(reply));
}
+bool TaskRunner::RunsTasksOnCurrentThread() const {
+ return RunsTasksInCurrentSequence();
gab 2017/04/26 15:03:05 Actually, let's move this implementation in the he
gab 2017/04/27 14:31:17 FYI: You want to reply "Done." specifically on the
+}
+
TaskRunner::TaskRunner() {}
TaskRunner::~TaskRunner() {}
« no previous file with comments | « base/task_runner.h ('k') | base/task_scheduler/scheduler_single_thread_task_runner_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698