Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // WARNING: You should *NOT* be using this class directly. PlatformThread is | 5 // WARNING: You should *NOT* be using this class directly. PlatformThread is |
| 6 // the low-level platform-specific abstraction to the OS's threading interface. | 6 // the low-level platform-specific abstraction to the OS's threading interface. |
| 7 // You should instead be using a message-loop driven Thread, see thread.h. | 7 // You should instead be using a message-loop driven Thread, see thread.h. |
| 8 | 8 |
| 9 #ifndef BASE_THREADING_PLATFORM_THREAD_H_ | 9 #ifndef BASE_THREADING_PLATFORM_THREAD_H_ |
| 10 #define BASE_THREADING_PLATFORM_THREAD_H_ | 10 #define BASE_THREADING_PLATFORM_THREAD_H_ |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 // CreateNonJoinable() does the same thing as Create() except the thread | 84 // CreateNonJoinable() does the same thing as Create() except the thread |
| 85 // cannot be Join()'d. Therefore, it also does not output a | 85 // cannot be Join()'d. Therefore, it also does not output a |
| 86 // PlatformThreadHandle. | 86 // PlatformThreadHandle. |
| 87 static bool CreateNonJoinable(size_t stack_size, Delegate* delegate); | 87 static bool CreateNonJoinable(size_t stack_size, Delegate* delegate); |
| 88 | 88 |
| 89 // Joins with a thread created via the Create function. This function blocks | 89 // Joins with a thread created via the Create function. This function blocks |
| 90 // the caller until the designated thread exits. This will invalidate | 90 // the caller until the designated thread exits. This will invalidate |
| 91 // |thread_handle|. | 91 // |thread_handle|. |
| 92 static void Join(PlatformThreadHandle thread_handle); | 92 static void Join(PlatformThreadHandle thread_handle); |
| 93 | 93 |
| 94 // Enables time-contraint policy and priority suitable for low-latency, | |
| 95 // glitch-resistant audio. | |
| 96 static void EnableRealtimeAudioPerformance(PlatformThreadHandle handle); | |
|
Ken Russell (switch to Gerrit)
2011/05/09 22:28:14
An audio-specific method seems out of place in thi
| |
| 97 | |
| 94 private: | 98 private: |
| 95 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread); | 99 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread); |
| 96 }; | 100 }; |
| 97 | 101 |
| 98 } // namespace base | 102 } // namespace base |
| 99 | 103 |
| 100 #endif // BASE_THREADING_PLATFORM_THREAD_H_ | 104 #endif // BASE_THREADING_PLATFORM_THREAD_H_ |
| OLD | NEW |