From f602d362ba4bb3adbf1eb4e38a794fb14274293a Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Sun, 20 Jun 2010 14:28:16 -0700 Subject: 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 --- include/android_runtime/AndroidRuntime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/android_runtime/AndroidRuntime.h') 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 */ -- cgit v1.1