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

Unified Diff: base/task_scheduler/scheduler_worker_thread.h

Issue 1876363004: TaskScheduler [11] Support ExecutionMode::SINGLE_THREADED. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@8_delayed
Patch Set: all post tasks go through SchedulerThreadPool Created 4 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/task_scheduler/scheduler_worker_thread.h
diff --git a/base/task_scheduler/scheduler_worker_thread.h b/base/task_scheduler/scheduler_worker_thread.h
index 6ef208f15a9babd1d39d8dea64e64dce62751c52..ef83f43a4f965ae5d6f066c5196b6622bd575d25 100644
--- a/base/task_scheduler/scheduler_worker_thread.h
+++ b/base/task_scheduler/scheduler_worker_thread.h
@@ -37,8 +37,8 @@ class BASE_EXPORT SchedulerWorkerThread : public PlatformThread::Delegate {
public:
virtual ~Delegate() = default;
- // Called when the main function of the SchedulerWorkerThread enters.
- virtual void OnMainEntry() = 0;
+ // Called by |worker_thread| when it enters its main function.
+ virtual void OnMainEntry(SchedulerWorkerThread* worker_thread) = 0;
// Called by |worker_thread| to get a Sequence from which to run a Task.
virtual scoped_refptr<Sequence> GetWork(

Powered by Google App Engine
This is Rietveld 408576698