diff options
author | Mike Lockwood <lockwood@android.com> | 2010-06-20 14:28:16 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2010-06-22 09:26:41 -0400 |
commit | f602d362ba4bb3adbf1eb4e38a794fb14274293a (patch) | |
tree | d2b5da88fbc52e10a2c9b09f9027b32c539c5022 /include/android_runtime | |
parent | 07ccf5ad7edfeeebb79208ad3e8a52917fe038a8 (diff) | |
download | frameworks_base-f602d362ba4bb3adbf1eb4e38a794fb14274293a.zip frameworks_base-f602d362ba4bb3adbf1eb4e38a794fb14274293a.tar.gz frameworks_base-f602d362ba4bb3adbf1eb4e38a794fb14274293a.tar.bz2 |
GPS: remove GpsEventThread from GpsLocationProvider
Rather than polling for events from the native code in an event thread,
we now require the GPS HAL libraries to call our callbacks from a thread
that is registered with the JVM to call directly into Java.
This eliminates a thread from our code and removes one step in the chain
of message passing from the GPS to the Location Manager client.
Change-Id: I2745a157690310ba9a699a8369f54a7366c6b1ba
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/android_runtime')
-rw-r--r-- | include/android_runtime/AndroidRuntime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/android_runtime/AndroidRuntime.h b/include/android_runtime/AndroidRuntime.h index 99ab2f0..97a96b2 100644 --- a/include/android_runtime/AndroidRuntime.h +++ b/include/android_runtime/AndroidRuntime.h @@ -87,7 +87,7 @@ public: virtual void onExit(int code); /** create a new thread that is visible from Java */ - static void createJavaThread(const char* name, void (*start)(void *), + static android_thread_id_t createJavaThread(const char* name, void (*start)(void *), void* arg); /** return a pointer to the VM running in this process */ |