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

Unified Diff: device/bluetooth/bluetooth_task_manager_win.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: review:jam Created 4 years, 6 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: device/bluetooth/bluetooth_task_manager_win.cc
diff --git a/device/bluetooth/bluetooth_task_manager_win.cc b/device/bluetooth/bluetooth_task_manager_win.cc
index fdef7d85fda67599cc7b9c35e5b54c8209b93555..ea2a630e8a97a2e6beba506c070a05f4f29b79f9 100644
--- a/device/bluetooth/bluetooth_task_manager_win.cc
+++ b/device/bluetooth/bluetooth_task_manager_win.cc
@@ -257,8 +257,9 @@ void BluetoothTaskManagerWin::RemoveObserver(Observer* observer) {
void BluetoothTaskManagerWin::Initialize() {
DCHECK(ui_task_runner_->RunsTasksOnCurrentThread());
- worker_pool_ = new base::SequencedWorkerPool(kNumThreadsInWorkerPool,
- kBluetoothThreadName);
+ worker_pool_ = new base::SequencedWorkerPool(
+ kNumThreadsInWorkerPool, kBluetoothThreadName,
+ base::TaskPriority::USER_BLOCKING);
scheib 2016/06/23 00:49:30 I'm not fully familiar with the priority levels, b
gab 2016/06/27 21:29:32 SGTM, thanks, done.
InitializeWithBluetoothTaskRunner(
worker_pool_->GetSequencedTaskRunnerWithShutdownBehavior(
worker_pool_->GetSequenceToken(),

Powered by Google App Engine
This is Rietveld 408576698