diff options
author | Sven Gothel <[email protected]> | 2011-10-13 17:04:17 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-13 17:04:17 +0200 |
commit | d186f6e945fd157b219231fb3861b3b0ce10ee75 (patch) | |
tree | b3851f97222cf224251956cb8ad06508c7a9d090 /src/nativewindow/native/NativewindowCommon.h | |
parent | 3fd89ccc138eddb915372cff4843f69f764048a7 (diff) |
OSX/SWT: Adding OSXUtil: RunOnMainThread(), IsMainThread() / Utilizing those for SWT access/calls
Adding OSXUtil: RunOnMainThread(), IsMainThread()
- Issuing a native call where the user Runnable is to be performed on the main thread
- Enable query if we are on the main thread.
Utilizing those for SWT access/calls
- Using the above to call all SWT functions on the main thread if required (incomplete)
TODO/Issues:
- JOGL OSX CGL Context fails, ie expecting NS, but having CGL
Diffstat (limited to 'src/nativewindow/native/NativewindowCommon.h')
-rw-r--r-- | src/nativewindow/native/NativewindowCommon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nativewindow/native/NativewindowCommon.h b/src/nativewindow/native/NativewindowCommon.h index 5dc5debef..41c4bd0eb 100644 --- a/src/nativewindow/native/NativewindowCommon.h +++ b/src/nativewindow/native/NativewindowCommon.h @@ -12,4 +12,6 @@ jchar* NativewindowCommon_GetNullTerminatedStringChars(JNIEnv* env, jstring str) void NativewindowCommon_FatalError(JNIEnv *env, const char* msg, ...); void NativewindowCommon_throwNewRuntimeException(JNIEnv *env, const char* msg, ...); +JNIEnv* NativewindowCommon_GetJNIEnv (JavaVM * jvmHandle, int jvmVersion, int * shallBeDetached); + #endif |