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

Unified Diff: base/task_scheduler/scheduler_worker_thread.h

Issue 1862243005: TaskScheduler: Pop a Task from its Sequence from SchedulerWorkerThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@5_pq_callback
Patch Set: CR robliao #6 (improve comments) 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
« no previous file with comments | « no previous file | base/task_scheduler/scheduler_worker_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc3b1b56374aa4c8e78f8757f67367150d929ca6..078408975b71b496c39c923585f1d740e76256e3 100644
--- a/base/task_scheduler/scheduler_worker_thread.h
+++ b/base/task_scheduler/scheduler_worker_thread.h
@@ -47,10 +47,9 @@ class BASE_EXPORT SchedulerWorkerThread : public PlatformThread::Delegate {
virtual scoped_refptr<Sequence> GetWork(
SchedulerWorkerThread* worker_thread) = 0;
- // Called after the SchedulerWorkerThread has tried to run a Task from
- // |sequence| (a TaskTracker might have prevented the Task from running).
- // The Task is still in |sequence| when this is called.
- virtual void RanTaskFromSequence(scoped_refptr<Sequence> sequence) = 0;
+ // Called when |sequence| isn't empty after the SchedulerWorkerThread pops a
+ // Task from it. |sequence| is the last Sequence returned by GetWork().
+ virtual void EnqueueSequence(scoped_refptr<Sequence> sequence) = 0;
};
// Creates a SchedulerWorkerThread with priority |thread_priority| that runs
« no previous file with comments | « no previous file | base/task_scheduler/scheduler_worker_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698