diff options
author | Sven Gothel <[email protected]> | 2019-11-21 02:55:37 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-11-21 02:55:37 +0100 |
commit | 1e48668514c2f9c6120b62f1a66b87422e511627 (patch) | |
tree | 1300b618cd165b9e80cb83461d7454c6612b1431 /src/nativewindow/classes/jogamp | |
parent | b0a222100ce8425485bea201adf28dc6509333ad (diff) |
MacOS: Add more debug log details
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r-- | src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java b/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java index f84955e69..1b7ba0d94 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java +++ b/src/nativewindow/classes/jogamp/nativewindow/macosx/OSXUtil.java @@ -35,6 +35,7 @@ import com.jogamp.nativewindow.util.Point; import java.security.AccessController; import java.security.PrivilegedAction; +import com.jogamp.common.ExceptionUtils; import com.jogamp.common.os.NativeLibrary; import com.jogamp.common.util.Function; import com.jogamp.common.util.FunctionTask; @@ -414,6 +415,12 @@ public class OSXUtil implements ToolkitProperties { return GetScreenRefreshRate0(scrn_idx); } + private static final String getCurrentThreadName() { return Thread.currentThread().getName(); } // Callback for JNI + private static final void dumpStack() { // Callback for JNI + System.err.println("Stacktrace on thread "+Thread.currentThread().getName()); + ExceptionUtils.dumpStack(System.err); + } + private static native boolean initIDs0(); private static native boolean isNSView0(long object); private static native boolean isNSWindow0(long object); |