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

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: address bulach's comments 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..cf44b9ad416b1b6e624995a4d1c4c3193e4c961e 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)
+#include "jni.h"
+#endif
+
namespace base {
// PlatformThreadHandle should not be assumed to be a numeric type, since the
@@ -46,6 +50,10 @@ enum ThreadPriority{
kThreadPriority_RealtimeAudio
};
+#if defined(OS_ANDROID)
+bool RegisterThreadUtils(JNIEnv* env);
+#endif
+
// A namespace for low-level thread functions.
class BASE_EXPORT PlatformThread {
public:

Powered by Google App Engine
This is Rietveld 408576698