OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_ | 5 #ifndef BASE_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_ |
6 #define BASE_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_ | 6 #define BASE_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_ |
7 | 7 |
8 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
(...skipping 18 matching lines...) Expand all Loading... |
29 // SetCurrentThreadPriority. Returns true if the platform-specific | 29 // SetCurrentThreadPriority. Returns true if the platform-specific |
30 // implementation handled this |priority| change, false if the generic | 30 // implementation handled this |priority| change, false if the generic |
31 // implementation should instead proceed. | 31 // implementation should instead proceed. |
32 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority); | 32 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority); |
33 | 33 |
34 // Returns true if there is a platform-specific ThreadPriority set on the | 34 // Returns true if there is a platform-specific ThreadPriority set on the |
35 // current thread (and returns the actual ThreadPriority via |priority|). | 35 // current thread (and returns the actual ThreadPriority via |priority|). |
36 // Returns false otherwise, leaving |priority| untouched. | 36 // Returns false otherwise, leaving |priority| untouched. |
37 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority); | 37 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority); |
38 | 38 |
| 39 bool SetThreadPriority(PlatformThreadId tid, ThreadPriority priority); |
| 40 |
39 } // namespace internal | 41 } // namespace internal |
40 | 42 |
41 } // namespace base | 43 } // namespace base |
42 | 44 |
43 #endif // BASE_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_ | 45 #endif // BASE_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_ |
OLD | NEW |