com.jogamp.nativewindow.awt.AppContextInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jogl Show documentation
Show all versions of jogl Show documentation
Java™ Binding for the OpenGL® API (Atomic Jar files)
package com.jogamp.nativewindow.awt;
import java.lang.ref.WeakReference;
import java.lang.reflect.Method;
import java.security.AccessController;
import java.security.PrivilegedAction;
import com.jogamp.common.util.RunnableTask;
import jogamp.nativewindow.jawt.JAWTUtil;
/**
* Instance of this class holds information about a {@link ThreadGroup} associated {@link sun.awt.AppContext}.
*
* Non intrusive workaround for Bug 983 and Bug 1004, see {@link #getCachedThreadGroup()}.
*
*/
public class AppContextInfo {
private static final boolean DEBUG;
private static final Method getAppContextMethod;
private static final Object mainThreadAppContextLock = new Object();
private volatile WeakReference