| OLD | NEW |
| 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 namespace base { | 7 namespace base { |
| 8 | 8 |
| 9 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( | 9 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( |
| 10 const std::string& name, | |
| 11 ThreadPriority priority_hint, | |
| 12 StandbyThreadPolicy standby_thread_policy, | |
| 13 int max_threads, | |
| 14 TimeDelta suggested_reclaim_time, | |
| 15 SchedulerBackwardCompatibility backward_compatibility) | |
| 16 : name_(name), | |
| 17 priority_hint_(priority_hint), | |
| 18 standby_thread_policy_(standby_thread_policy), | |
| 19 max_threads_(max_threads), | |
| 20 suggested_reclaim_time_(suggested_reclaim_time), | |
| 21 backward_compatibility_(backward_compatibility) {} | |
| 22 | |
| 23 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( | |
| 24 StandbyThreadPolicy standby_thread_policy, | 10 StandbyThreadPolicy standby_thread_policy, |
| 25 int max_threads, | 11 int max_threads, |
| 26 TimeDelta suggested_reclaim_time, | 12 TimeDelta suggested_reclaim_time, |
| 27 SchedulerBackwardCompatibility backward_compatibility) | 13 SchedulerBackwardCompatibility backward_compatibility) |
| 28 : SchedulerWorkerPoolParams(std::string(), | 14 : standby_thread_policy_(standby_thread_policy), |
| 29 ThreadPriority::NORMAL, | 15 max_threads_(max_threads), |
| 30 standby_thread_policy, | 16 suggested_reclaim_time_(suggested_reclaim_time), |
| 31 max_threads, | 17 backward_compatibility_(backward_compatibility) {} |
| 32 suggested_reclaim_time, | |
| 33 backward_compatibility) {} | |
| 34 | 18 |
| 35 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( | 19 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams( |
| 36 const SchedulerWorkerPoolParams& other) = default; | 20 const SchedulerWorkerPoolParams& other) = default; |
| 37 | 21 |
| 38 SchedulerWorkerPoolParams& SchedulerWorkerPoolParams::operator=( | 22 SchedulerWorkerPoolParams& SchedulerWorkerPoolParams::operator=( |
| 39 const SchedulerWorkerPoolParams& other) = default; | 23 const SchedulerWorkerPoolParams& other) = default; |
| 40 | 24 |
| 41 } // namespace base | 25 } // namespace base |
| OLD | NEW |