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

Unified Diff: base/threading/platform_thread.h

Issue 11729002: Set Realtime Audio Thread priority on Android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: refactor code Created 7 years, 11 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/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index 576695a4e7b5f8028f47cc5e02921b551ffb0a39..4fa6774f2055140ac58964e21b4ab5d6b013afa1 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -21,6 +21,10 @@
#include <unistd.h>
#endif
+#if defined(OS_ANDROID)
bulach 2013/01/09 12:57:58 nit: keep with the platform specific includes abov
Wei James(wistoch) 2013/01/10 08:30:05 Android also needs the header files for OS_POSIX.
+#include "jni.h"
+#endif
+
namespace base {
// PlatformThreadHandle should not be assumed to be a numeric type, since the
@@ -45,6 +49,9 @@ enum ThreadPriority{
// Suitable for low-latency, glitch-resistant audio.
kThreadPriority_RealtimeAudio
};
bulach 2013/01/09 12:57:58 nit: add a \n
Wei James(wistoch) 2013/01/10 08:30:05 fixed. thanks
+#if defined(OS_ANDROID)
+bool RegisterThreadUtils(JNIEnv* env);
+#endif
// A namespace for low-level thread functions.
class BASE_EXPORT PlatformThread {

Powered by Google App Engine
This is Rietveld 408576698