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

Unified Diff: base/threading/simple_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
Index: base/threading/simple_thread.h
===================================================================
--- base/threading/simple_thread.h (revision 83935)
+++ base/threading/simple_thread.h (working copy)
@@ -104,6 +104,12 @@
// Overridden from PlatformThread::Delegate:
virtual void ThreadMain();
+ // Enables time-contraint policy and priority suitable for low-latency,
+ // glitch-resistant audio.
+ void EnableRealtimeAudioPerformance() {
+ PlatformThread::EnableRealtimeAudioPerformance(thread_);
+ }
+
private:
const std::string name_prefix_;
std::string name_;

Powered by Google App Engine
This is Rietveld 408576698