Leszek Swirski | 2987cc8 | 2018-11-05 15:19:28 | [diff] [blame] | 1 | // Copyright 2018 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/task_features.h" |
| 6 | |
| 7 | #include "base/feature_list.h" |
| 8 | |
| 9 | namespace base { |
| 10 | |
Etienne Pierre-doray | 3ed4138 | 2019-02-06 04:40:47 | [diff] [blame] | 11 | const Feature kMayBlockWithoutDelay = {"MayBlockWithoutDelay", |
| 12 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 13 | |
Etienne Pierre-doray | ea2b21e | 2020-10-26 22:38:59 | [diff] [blame] | 14 | const Feature kDisableJobYield = {"DisableJobYield", |
| 15 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 16 | |
| 17 | const Feature kDisableFairJobScheduling = {"DisableFairJobScheduling", |
| 18 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 19 | |
| 20 | const Feature kDisableJobUpdatePriority = {"DisableJobUpdatePriority", |
| 21 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 22 | |
| 23 | const Feature kWakeUpStrategyFeature = {"WakeUpStrategyFeature", |
| 24 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 25 | |
| 26 | constexpr FeatureParam<WakeUpStrategy>::Option kWakeUpStrategyOptions[] = { |
| 27 | {WakeUpStrategy::kCentralizedWakeUps, "centralized-wakeups"}, |
| 28 | {WakeUpStrategy::kSerializedWakeUps, "serialized-wakeups"}, |
Etienne Pierre-doray | b5fe0b5f | 2021-01-29 18:37:27 | [diff] [blame] | 29 | {WakeUpStrategy::kExponentialWakeUps, "exponential-wakeups"}, |
| 30 | {WakeUpStrategy::kGreedyWakeUps, "greedy-wakeups"}}; |
Etienne Pierre-doray | ea2b21e | 2020-10-26 22:38:59 | [diff] [blame] | 31 | |
| 32 | const base::FeatureParam<WakeUpStrategy> kWakeUpStrategyParam{ |
| 33 | &kWakeUpStrategyFeature, "strategy", WakeUpStrategy::kExponentialWakeUps, |
| 34 | &kWakeUpStrategyOptions}; |
| 35 | |
| 36 | const Feature kWakeUpAfterGetWork = {"WakeUpAfterGetWork", |
| 37 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 38 | |
Francois Doray | ee4a553 | 2021-03-30 00:17:17 | [diff] [blame] | 39 | #if HAS_NATIVE_THREAD_POOL() |
Aditya Keerthi | a41eda5 | 2019-04-01 15:03:25 | [diff] [blame] | 40 | const Feature kUseNativeThreadPool = {"UseNativeThreadPool", |
| 41 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Francois Doray | ee4a553 | 2021-03-30 00:17:17 | [diff] [blame] | 42 | const Feature kUseBackgroundNativeThreadPool = { |
| 43 | "UseBackgroundNativeThreadPool", base::FEATURE_DISABLED_BY_DEFAULT}; |
Aditya Keerthi | a41eda5 | 2019-04-01 15:03:25 | [diff] [blame] | 44 | #endif |
| 45 | |
Francois Doray | a20b6df2 | 2019-06-27 15:04:19 | [diff] [blame] | 46 | const Feature kUseFiveMinutesThreadReclaimTime = { |
| 47 | "UseFiveMinutesThreadReclaimTime", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 48 | |
Patrick Monette | eaaa238 | 2021-12-08 17:06:59 | [diff] [blame^] | 49 | const BASE_EXPORT Feature kRemoveCanceledTasksInTaskQueue = { |
| 50 | "RemoveCanceledTasksInTaskQueue", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 51 | |
Francois Doray | 5b44e33f | 2018-11-09 22:08:13 | [diff] [blame] | 52 | } // namespace base |