You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
MessageQueue: integrate with glib main loop
Adds a special treatment for the main Looper to not block in java code, but instead return to glib managed thread loop. Timeouts in the mainloop are now handled using g_timeout_add_full(). Also defer Activity construction, so that every thing is set up properly when the constructor runs.
This commit is contained in:
@@ -26,9 +26,9 @@ JNIEXPORT void JNICALL Java_android_os_MessageQueue_nativeDestroy
|
||||
/*
|
||||
* Class: android_os_MessageQueue
|
||||
* Method: nativePollOnce
|
||||
* Signature: (JI)V
|
||||
* Signature: (JI)Z
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_android_os_MessageQueue_nativePollOnce
|
||||
JNIEXPORT jboolean JNICALL Java_android_os_MessageQueue_nativePollOnce
|
||||
(JNIEnv *, jclass, jlong, jint);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user