Chromium Code Reviews| Index: base/threading/platform_thread.h |
| diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h |
| index f90a9a2ec17d51c04cfc129fcde1013e118ff7fd..22a86ca4ca23468b6c2e9be4fcae7d48ded02266 100644 |
| --- a/base/threading/platform_thread.h |
| +++ b/base/threading/platform_thread.h |
| @@ -110,15 +110,17 @@ class PlatformThreadHandle { |
| const PlatformThreadId kInvalidThreadId(0); |
| -// Valid values for SetThreadPriority() |
| -enum ThreadPriority { |
| - kThreadPriority_Normal, |
| - // Suitable for low-latency, glitch-resistant audio. |
| - kThreadPriority_RealtimeAudio, |
| - // Suitable for threads which generate data for the display (at ~60Hz). |
| - kThreadPriority_Display, |
| +// Valid values for SetThreadPriority(), listed in increasing order of |
| +// importance. |
| +enum class ThreadPriority { |
| // Suitable for threads that shouldn't disrupt high priority work. |
| - kThreadPriority_Background |
| + BACKGROUND, |
| + // Default priority level. |
| + NORMAL, |
| + // Suitable for threads which generate data for the display (at ~60Hz). |
| + DISPLAY, |
| + // Suitable for low-latency, glitch-resistant audio. |
| + REALTIMEAUDIO, |
|
rvargas (doing something else)
2015/04/01 19:10:35
nit: REALTIME_AUDIO ?
gab
2015/04/01 21:05:33
Done.
|
| }; |
| // A namespace for low-level thread functions. |