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

Unified Diff: base/threading/sequenced_worker_pool_unittest.cc

Issue 2501763002: Add Thread Standby Policy SchedulerWorkerPoolImpl (Closed)
Patch Set: Rebase to edc7bea Created 4 years, 1 month 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/threading/sequenced_worker_pool_unittest.cc
diff --git a/base/threading/sequenced_worker_pool_unittest.cc b/base/threading/sequenced_worker_pool_unittest.cc
index 5782af7e767b631bffcb0c3551895ea9a55a2d02..d2007f8be52241628321b5d55766ce308f2a80ab 100644
--- a/base/threading/sequenced_worker_pool_unittest.cc
+++ b/base/threading/sequenced_worker_pool_unittest.cc
@@ -248,8 +248,9 @@ class SequencedWorkerPoolTest
std::vector<SchedulerWorkerPoolParams> worker_pool_params;
worker_pool_params.emplace_back(
"SchedulerWorkerPoolName", ThreadPriority::NORMAL,
- SchedulerWorkerPoolParams::IORestriction::ALLOWED, kNumWorkerThreads,
- TimeDelta::Max());
+ SchedulerWorkerPoolParams::IORestriction::ALLOWED,
+ SchedulerWorkerPoolParams::StandbyThreadPolicy::LAZY,
+ kNumWorkerThreads, TimeDelta::Max());
TaskScheduler::CreateAndSetDefaultTaskScheduler(
std::move(worker_pool_params),
base::Bind([](const TaskTraits&) -> size_t { return 0U; }));
« no previous file with comments | « base/task_scheduler/task_scheduler_impl_unittest.cc ('k') | components/task_scheduler_util/initialization_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698