changeset 5283:b20673c09b07

RT-28763 FB: Rename LensApplication.startNativeEventLoop() to nativeEventLoop() Summary: Cosmetic change so that a more appropriate function name shows up in logs Reviewed-by: Assaf Yavnai, Rafi Tayar
author Daniel Blaukopf <daniel.blaukopf@oracle.com>
date Mon, 07 Oct 2013 13:25:02 +0200
parents 77c02e6ffbe6
children 093616690092
files modules/graphics/src/main/java/com/sun/glass/ui/lens/LensApplication.java modules/graphics/src/main/native-glass/lens/LensApplication.c
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/lens/LensApplication.java	Mon Oct 07 13:26:12 2013 +0400
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/lens/LensApplication.java	Mon Oct 07 13:25:02 2013 +0200
@@ -941,9 +941,9 @@
 
     // Call into the native impl to start up any native device input queues
     // needed. Native will upcall to createNativeEventThread to start any threads.
-    private native void startNativeEventLoop(final LensApplication lensApp,
-                                             long nativeEventHandler,
-                                             long nativeWindow);
+    private native void nativeEventLoop(final LensApplication lensApp,
+                                        long nativeEventHandler,
+                                        long nativeWindow);
 
     // Note: this Native event thread is designed to listen for events
     // from native sources. For example, it may poll some native input devices.
@@ -958,8 +958,8 @@
             @Override
             public void run() {
                 registerEventLoop();
-                lensApplication.startNativeEventLoop(lensApplication,
-                                                     nativeEventHandler, data);
+                lensApplication.nativeEventLoop(lensApplication,
+                                                nativeEventHandler, data);
 
                 //when the native function return
                 //event loop has exited
--- a/modules/graphics/src/main/native-glass/lens/LensApplication.c	Mon Oct 07 13:26:12 2013 +0400
+++ b/modules/graphics/src/main/native-glass/lens/LensApplication.c	Mon Oct 07 13:25:02 2013 +0200
@@ -251,7 +251,7 @@
     GLASS_LOG_FINE("Created native event thread");
 }
 
-JNIEXPORT void JNICALL Java_com_sun_glass_ui_lens_LensApplication_startNativeEventLoop
+JNIEXPORT void JNICALL Java_com_sun_glass_ui_lens_LensApplication_nativeEventLoop
 (JNIEnv *env, jobject len, jobject lensApplication,
  jlong callbackFuncPtr, jlong nativeHandle) {