diff options
author | Mike Lockwood <lockwood@android.com> | 2010-06-22 06:44:03 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-06-22 06:44:03 -0700 |
commit | aaf39f84063b8fee51bcdb0731d68c328b6a3c3d (patch) | |
tree | 25b4049ef3f7110fce66485fd9dd9c69025f225b /core/jni | |
parent | 224107a421e2611b15d1ec736df54bca9ee3e78d (diff) | |
parent | f602d362ba4bb3adbf1eb4e38a794fb14274293a (diff) | |
download | frameworks_base-aaf39f84063b8fee51bcdb0731d68c328b6a3c3d.zip frameworks_base-aaf39f84063b8fee51bcdb0731d68c328b6a3c3d.tar.gz frameworks_base-aaf39f84063b8fee51bcdb0731d68c328b6a3c3d.tar.bz2 |
Merge "GPS: remove GpsEventThread from GpsLocationProvider" into gingerbread
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/AndroidRuntime.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 466642a..3e69c78 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -1136,11 +1136,13 @@ static int javaDetachThread(void) * * This is called from elsewhere in the library. */ -/*static*/ void AndroidRuntime::createJavaThread(const char* name, +/*static*/ android_thread_id_t AndroidRuntime::createJavaThread(const char* name, void (*start)(void *), void* arg) { + android_thread_id_t threadId = 0; javaCreateThreadEtc((android_thread_func_t) start, arg, name, - ANDROID_PRIORITY_DEFAULT, 0, NULL); + ANDROID_PRIORITY_DEFAULT, 0, &threadId); + return threadId; } #if 0 |