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

Unified Diff: base/task_scheduler/task_scheduler_impl.cc

Issue 2116163002: Add Lazy Creation and Thread Detachment Support in the Scheduler Worker Pool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: base/task_scheduler/task_scheduler_impl.cc
diff --git a/base/task_scheduler/task_scheduler_impl.cc b/base/task_scheduler/task_scheduler_impl.cc
index 2f5b68f6a78f6328580d95302a8905805801659b..5ac91c868710fd75a498e02a85bd65765f934764 100644
--- a/base/task_scheduler/task_scheduler_impl.cc
+++ b/base/task_scheduler/task_scheduler_impl.cc
@@ -97,8 +97,8 @@ void TaskSchedulerImpl::Initialize(
// can't be deleted before all its worker pools have been joined.
worker_pools_.push_back(SchedulerWorkerPoolImpl::Create(
worker_pool.name, worker_pool.thread_priority, worker_pool.max_threads,
- worker_pool.io_restriction, re_enqueue_sequence_callback,
- &task_tracker_, &delayed_task_manager_));
+ worker_pool.io_restriction, TimeDelta::Max(),
+ re_enqueue_sequence_callback, &task_tracker_, &delayed_task_manager_));
CHECK(worker_pools_.back());
}

Powered by Google App Engine
This is Rietveld 408576698