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

Side by Side Diff: base/task_scheduler/scheduler_worker_pool_params.cc

Issue 2146223002: Refactor WorkerPoolCreationArgs to a Read-Only WorkerPoolParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WorkerPoolParams -> SchedulerWorkerPoolParams and Some Cleanup 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/task_scheduler/scheduler_worker_pool_params.h"
6
7 namespace base {
8 namespace internal {
9
10 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
11 const std::string& name,
12 ThreadPriority thread_priority,
13 IORestriction io_restriction,
14 int max_threads)
15 : name_(name),
16 thread_priority_(thread_priority),
17 io_restriction_(io_restriction),
18 max_threads_(max_threads) {}
19
20 SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
21 SchedulerWorkerPoolParams&& other) = default;
22
23 SchedulerWorkerPoolParams& SchedulerWorkerPoolParams::operator=(
24 SchedulerWorkerPoolParams&& other) = default;
25
26 } // namespace internal
27 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698