| Index: base/task_scheduler/scheduler_worker_pool_params.h
|
| diff --git a/base/task_scheduler/scheduler_worker_pool_params.h b/base/task_scheduler/scheduler_worker_pool_params.h
|
| index c33392afd061c0d6c22d12e262111430bae4b2b4..f3cd20fd7a3be7315b6ad972dfee2426ba5d73de 100644
|
| --- a/base/task_scheduler/scheduler_worker_pool_params.h
|
| +++ b/base/task_scheduler/scheduler_worker_pool_params.h
|
| @@ -16,11 +16,6 @@ class TimeDelta;
|
|
|
| class BASE_EXPORT SchedulerWorkerPoolParams final {
|
| public:
|
| - enum class IORestriction {
|
| - ALLOWED,
|
| - DISALLOWED,
|
| - };
|
| -
|
| enum class StandbyThreadPolicy {
|
| // Create threads as needed on demand, reclaimed as necessary.
|
| LAZY,
|
| @@ -34,13 +29,11 @@ class BASE_EXPORT SchedulerWorkerPoolParams final {
|
| // ("TaskScheduler." + histogram name + "." + |name| + extra suffixes). The
|
| // pool will contain up to |max_threads|. |priority_hint| is the preferred
|
| // thread priority; the actual thread priority depends on shutdown state and
|
| - // platform capabilities. |io_restriction| indicates whether Tasks on the pool
|
| - // are allowed to make I/O calls. |suggested_reclaim_time| sets a suggestion
|
| - // on when to reclaim idle threads. The pool is free to ignore this value for
|
| + // platform capabilities. |suggested_reclaim_time| sets a suggestion on when
|
| + // to reclaim idle threads. The pool is free to ignore this value for
|
| // performance or correctness reasons.
|
| SchedulerWorkerPoolParams(const std::string& name,
|
| ThreadPriority priority_hint,
|
| - IORestriction io_restriction,
|
| StandbyThreadPolicy standby_thread_policy,
|
| int max_threads,
|
| const TimeDelta& suggested_reclaim_time);
|
| @@ -49,7 +42,6 @@ class BASE_EXPORT SchedulerWorkerPoolParams final {
|
|
|
| const std::string& name() const { return name_; }
|
| ThreadPriority priority_hint() const { return priority_hint_; }
|
| - IORestriction io_restriction() const { return io_restriction_; }
|
| StandbyThreadPolicy standby_thread_policy() const {
|
| return standby_thread_policy_;
|
| }
|
| @@ -61,7 +53,6 @@ class BASE_EXPORT SchedulerWorkerPoolParams final {
|
| private:
|
| std::string name_;
|
| ThreadPriority priority_hint_;
|
| - IORestriction io_restriction_;
|
| StandbyThreadPolicy standby_thread_policy_;
|
| size_t max_threads_;
|
| TimeDelta suggested_reclaim_time_;
|
|
|