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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/task_scheduler/scheduler_worker_pool_params.h" 5 #include "base/task_scheduler/scheduler_worker_pool_params.h"
6 6
7 #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.
8
7 namespace base { 9 namespace base {
8 namespace internal { 10 namespace internal {
9 11
10 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( 12 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
11 const std::string& name, 13 const std::string& name,
12 ThreadPriority thread_priority, 14 ThreadPriority thread_priority,
13 IORestriction io_restriction, 15 IORestriction io_restriction,
14 int max_threads) 16 int max_threads,
17 const TimeDelta& suggested_reclaim_time)
15 : name_(name), 18 : name_(name),
16 thread_priority_(thread_priority), 19 thread_priority_(thread_priority),
17 io_restriction_(io_restriction), 20 io_restriction_(io_restriction),
18 max_threads_(max_threads) {} 21 max_threads_(max_threads),
22 suggested_reclaim_time_(suggested_reclaim_time) {}
19 23
20 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( 24 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
21 SchedulerWorkerPoolParams&& other) = default; 25 SchedulerWorkerPoolParams&& other) = default;
22 26
23 SchedulerWorkerPoolParams& SchedulerWorkerPoolParams::operator=( 27 SchedulerWorkerPoolParams& SchedulerWorkerPoolParams::operator=(
24 SchedulerWorkerPoolParams&& other) = default; 28 SchedulerWorkerPoolParams&& other) = default;
25 29
26 } // namespace internal 30 } // namespace internal
27 } // namespace base 31 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698