123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef BASE_TASK_TASK_FEATURES_H_
- #define BASE_TASK_TASK_FEATURES_H_
- #include "base/base_export.h"
- #include "base/metrics/field_trial_params.h"
- #include "build/build_config.h"
- namespace base {
- struct Feature;
- extern const BASE_EXPORT Feature kAllTasksUserBlocking;
- extern const BASE_EXPORT Feature kNoDetachBelowInitialCapacity;
- extern const BASE_EXPORT Feature kMayBlockWithoutDelay;
- #if defined(OS_WIN) || defined(OS_APPLE)
- #define HAS_NATIVE_THREAD_POOL() 1
- #else
- #define HAS_NATIVE_THREAD_POOL() 0
- #endif
- #if HAS_NATIVE_THREAD_POOL()
- extern const BASE_EXPORT Feature kUseNativeThreadPool;
- #endif
- extern const BASE_EXPORT Feature kUseFiveMinutesThreadReclaimTime;
- }
- #endif
|