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

Unified Diff: base/task_scheduler/task_tracker.h

Issue 2161213002: TaskScheduler: Bump thread priority during shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/task_tracker.h
diff --git a/base/task_scheduler/task_tracker.h b/base/task_scheduler/task_tracker.h
index fc0901f7c139ade379e6e334a3aa7603efec7b49..35f8cd1c1886e7f82bc6cbb1a2603a4c42d416c9 100644
--- a/base/task_scheduler/task_tracker.h
+++ b/base/task_scheduler/task_tracker.h
@@ -49,7 +49,11 @@ class BASE_EXPORT TaskTracker {
// Returns true while shutdown is in progress (i.e. Shutdown() has been called
// but hasn't returned).
- bool IsShuttingDownForTesting() const;
+ bool IsShutdownInProgress() const;
+
+ // Causes IsShutdownInProgress() to return true. Shutdown() cannot be called
+ // after this.
robliao 2016/07/19 22:41:28 Comment why one would call this instead of Shutdow
fdoray 2016/07/20 18:22:21 Done.
+ void SetIsShutdownInProgressForTesting();
private:
class State;

Powered by Google App Engine
This is Rietveld 408576698