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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/threading/platform_thread_mac.mm » ('j') | base/threading/platform_thread_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | base/threading/platform_thread_mac.mm » ('j') | base/threading/platform_thread_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698