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

Side by Side Diff: base/task_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: CR Feedback 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/worker_pool_params.h"
6
7 namespace base {
8 namespace internal {
9
10 WorkerPoolParams::WorkerPoolParams(
11 const std::string& name,
12 ThreadPriority thread_priority,
13 SchedulerWorkerPoolImpl::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 WorkerPoolParams::WorkerPoolParams(WorkerPoolParams&& other) = default;
21
22 } // namespace internal
23 } // namespace base
OLDNEW
« base/task_scheduler/worker_pool_params.h ('K') | « base/task_scheduler/worker_pool_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698