OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_ | 5 #ifndef BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_ |
6 #define BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_ | 6 #define BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/task_scheduler/task_traits.h" | 10 #include "base/task_scheduler/task_traits.h" |
(...skipping 19 matching lines...) Expand all Loading... | |
30 // Preferred priority for threads in this environment; the actual thread | 30 // Preferred priority for threads in this environment; the actual thread |
31 // priority depends on shutdown state and platform capabilities. | 31 // priority depends on shutdown state and platform capabilities. |
32 ThreadPriority priority_hint; | 32 ThreadPriority priority_hint; |
33 } kEnvironmentParams[] = { | 33 } kEnvironmentParams[] = { |
34 {"Background", base::ThreadPriority::BACKGROUND}, | 34 {"Background", base::ThreadPriority::BACKGROUND}, |
35 {"BackgroundBlocking", base::ThreadPriority::BACKGROUND}, | 35 {"BackgroundBlocking", base::ThreadPriority::BACKGROUND}, |
36 {"Foreground", base::ThreadPriority::NORMAL}, | 36 {"Foreground", base::ThreadPriority::NORMAL}, |
37 {"ForegroundBlocking", base::ThreadPriority::NORMAL}, | 37 {"ForegroundBlocking", base::ThreadPriority::NORMAL}, |
38 }; | 38 }; |
39 | 39 |
40 size_t GetEnvironmentIndexForTraits(const TaskTraits& traits); | 40 size_t BASE_EXPORT GetEnvironmentIndexForTraits(const TaskTraits& traits); |
fdoray
2017/05/25 17:02:59
#include "base/base_export.h"
robliao
2017/05/30 20:01:06
Done.
| |
41 | 41 |
42 } // namespace internal | 42 } // namespace internal |
43 } // namespace base | 43 } // namespace base |
44 | 44 |
45 #endif // BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_ | 45 #endif // BASE_TASK_SCHEDULER_ENVIRONMENT_CONFIG_H_ |
OLD | NEW |