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

Unified Diff: tools/gn/scheduler.cc

Issue 2077413009: Add TaskPriority as a parameter to SequencedWorkerPool in preparation for TaskScheduler experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2_hook
Patch Set: tweak comment 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
« no previous file with comments | « tools/gn/header_checker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/scheduler.cc
diff --git a/tools/gn/scheduler.cc b/tools/gn/scheduler.cc
index b5f3dd07a277ecaef22de100fa8d226afc0603b5..039d2ec5359a2c2566ac1b630604b08653735d79 100644
--- a/tools/gn/scheduler.cc
+++ b/tools/gn/scheduler.cc
@@ -67,7 +67,9 @@ int GetThreadCount() {
} // namespace
Scheduler::Scheduler()
- : pool_(new base::SequencedWorkerPool(GetThreadCount(), "worker_")),
+ : pool_(new base::SequencedWorkerPool(GetThreadCount(),
+ "worker_",
+ base::TaskPriority::USER_VISIBLE)),
input_file_manager_(new InputFileManager),
verbose_logging_(false),
work_count_(0),
« no previous file with comments | « tools/gn/header_checker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698