Chromium Code Reviews| 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 { |