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

Unified Diff: base/task_scheduler/scheduler_worker.h

Issue 2726073002: WILL BE MERGED Change Ownership of Sequence to the Single Thread SchedulerWorker Delegate (Closed)
Patch Set: Created 3 years, 10 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.h
diff --git a/base/task_scheduler/scheduler_worker.h b/base/task_scheduler/scheduler_worker.h
index 0f9bc7f345e485cc647e7091c73744f88cd8373c..497d5dd1c6daa880566a14c60ec378f766d31fce 100644
--- a/base/task_scheduler/scheduler_worker.h
+++ b/base/task_scheduler/scheduler_worker.h
@@ -85,6 +85,9 @@ class BASE_EXPORT SchedulerWorker
// acquire a SchedulerLock because it is called within the scope of another
// SchedulerLock.
virtual void OnDetach() = 0;
+
+ // Called by a thread right before the main function exits.
+ virtual void OnMainExit() {}
};
enum class InitialState { ALIVE, DETACHED };

Powered by Google App Engine
This is Rietveld 408576698