blob: d820460e91dace499c3e7ad9162a44b67faaa3a8 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/task_scheduler/scheduler_worker_pool_params.h"
#include "base/time/time.h"
namespace base {
SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
const std::string& name,
ThreadPriority priority_hint,
IORestriction io_restriction,
int max_threads,
const TimeDelta& suggested_reclaim_time)
: name_(name),
priority_hint_(priority_hint),
io_restriction_(io_restriction),
max_threads_(max_threads),
suggested_reclaim_time_(suggested_reclaim_time) {}
SchedulerWorkerPoolParams::SchedulerWorkerPoolParams(
SchedulerWorkerPoolParams&& other) = default;
SchedulerWorkerPoolParams& SchedulerWorkerPoolParams::operator=(
SchedulerWorkerPoolParams&& other) = default;
} // namespace base