blob: aa0ea112daadcd4b91b3dccf1dc3303c5f59aada [file] [log] [blame]
Avi Drissmane4622aa2022-09-08 20:36:061// Copyright 2018 The Chromium Authors
Leszek Swirski2987cc82018-11-05 15:19:282// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef BASE_TASK_TASK_FEATURES_H_
6#define BASE_TASK_TASK_FEATURES_H_
7
8#include "base/base_export.h"
Anthony Vallee-Dubois9dbbbda32022-08-26 01:25:319#include "base/feature_list.h"
Etienne Pierre-Dorayd6b575b22018-11-21 19:32:2910#include "base/metrics/field_trial_params.h"
Aditya Keerthia41eda52019-04-01 15:03:2511#include "build/build_config.h"
Leszek Swirski2987cc82018-11-05 15:19:2812
13namespace base {
14
Edgar Arriagad096f402023-05-02 15:39:2415// Amount of threads that will be system-wide restricted from being used
16// by thread pools.
17BASE_EXPORT BASE_DECLARE_FEATURE(kThreadPoolCap);
18
19extern const BASE_EXPORT base::FeatureParam<int> kThreadPoolCapRestrictedCount;
20
Zhibo Wangf8950ab62022-12-09 05:33:4221// Under this feature, a utility_thread_group will be created for
22// running USER_VISIBLE tasks.