|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.impl.ThreadingImpl
public class ThreadingImpl
Implementation of the Threading
class.
Field Summary | |
---|---|
static int |
AWT
|
protected static boolean |
DEBUG
|
static int |
WORKER
|
Method Summary | |
---|---|
static void |
disableSingleThreading()
If an implementation of the javax.media.opengl APIs offers a multithreading option but the default behavior is single-threading, this API provides a mechanism for end users to disable single-threading in this implementation. |
static int |
getMode()
|
static void |
invokeOnOpenGLThread(Runnable r)
Executes the passed Runnable on the single thread used for all OpenGL work in this javax.media.opengl API implementation. |
static boolean |
isAWTMode()
This is a workaround for AWT-related deadlocks which only seem to show up in the context of applets |
static boolean |
isOpenGLThread()
Indicates whether the current thread is the single thread on which this implementation of the javax.media.opengl APIs performs all of its OpenGL-related work. |
static boolean |
isSingleThreaded()
Indicates whether OpenGL work is being automatically forced to a single thread in this implementation. |
static boolean |
isX11()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AWT
public static final int WORKER
protected static final boolean DEBUG
Method Detail |
---|
public static boolean isX11()
public static int getMode()
public static void disableSingleThreading()
public static boolean isSingleThreaded()
public static boolean isOpenGLThread() throws GLException
GLException
public static void invokeOnOpenGLThread(Runnable r) throws GLException
isOpenGLThread()
returns
false). It is up to the end user to check to see whether the
current thread is the OpenGL thread and either execute the
Runnable directly or perform the work inside it.
GLException
public static boolean isAWTMode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |