Chromium Code Reviews| Index: base/threading/platform_thread.h |
| =================================================================== |
| --- base/threading/platform_thread.h (revision 84711) |
| +++ base/threading/platform_thread.h (working copy) |
| @@ -47,6 +47,13 @@ |
| const PlatformThreadId kInvalidThreadId = 0; |
| +// Valid values for SetThreadPriority() |
| +enum ThreadPriority{ |
| + kThreadPriority_Normal, |
| + // Suitable for low-latency, glitch-resistant audio. |
| + kThreadPriority_RealtimeAudio |
|
darin (slow to review)
2011/05/13 17:51:12
isn't it a bit unfortunate for base to have to kno
scherkus (not reviewing)
2011/05/13 23:06:49
I don't want to bikeshed this anymore, but what ab
Ken Russell (switch to Gerrit)
2011/05/13 23:11:01
The Mac implementation is currently very specific
|
| +}; |
| + |
| // A namespace for low-level thread functions. |
| class BASE_API PlatformThread { |
| public: |
| @@ -91,6 +98,9 @@ |
| // |thread_handle|. |
| static void Join(PlatformThreadHandle thread_handle); |
| + static void SetThreadPriority(PlatformThreadHandle handle, |
|
scherkus (not reviewing)
2011/05/13 23:06:49
could we get a comment + disclaimer here warning p
|
| + ThreadPriority priority); |
| + |
| private: |
| DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread); |
| }; |