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

Unified Diff: base/task_scheduler/scheduler_worker_pool_params.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: CR Feedback Continuation 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/scheduler_worker_pool_params.cc
diff --git a/base/task_scheduler/scheduler_worker_pool_params.cc b/base/task_scheduler/scheduler_worker_pool_params.cc
index beefc38123b316fc94f1e74ec9dff55eb919c857..6164498aedcc1b83c48c844a4e9ba005f52f7959 100644
--- a/base/task_scheduler/scheduler_worker_pool_params.cc
+++ b/base/task_scheduler/scheduler_worker_pool_params.cc
@@ -4,6 +4,8 @@
#include "base/task_scheduler/scheduler_worker_pool_params.h"
+#include "base/time/time.h"
fdoray 2016/07/20 14:15:44 Not needed if included in the header.
robliao 2016/07/20 19:44:01 See earlier comment.
+
namespace base {
namespace internal {
@@ -11,11 +13,13 @@ SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
const std::string& name,
ThreadPriority thread_priority,
IORestriction io_restriction,
- int max_threads)
+ int max_threads,
+ const TimeDelta& suggested_reclaim_time)
: name_(name),
thread_priority_(thread_priority),
io_restriction_(io_restriction),
- max_threads_(max_threads) {}
+ max_threads_(max_threads),
+ suggested_reclaim_time_(suggested_reclaim_time) {}
SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
SchedulerWorkerPoolParams&& other) = default;

Powered by Google App Engine
This is Rietveld 408576698