Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: base/threading/platform_thread.h

Issue 6949009: Add support for real-time audio threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/threading/platform_thread_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | base/threading/platform_thread_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698