com.jogamp.opengl.Threading class.
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| protected static final boolean | |
| private static boolean | |
| private static Threading. | |
| private static boolean | |
| private static final ToolkitThreadingPlugin |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static final void | disableSingleThreading()
If an implementation of the com.jogamp.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. |
| public static Threading. | |
| public static final void | invokeOnOpenGLThread(final boolean wait, final Runnable r)
Executes the passed Runnable on the single thread used for all OpenGL work in this com.jogamp.opengl API implementation. |
| public static final void | |
| public static final boolean | |
| public static final boolean | isSingleThreaded()
Indicates whether OpenGL work is being automatically forced to a single thread in this implementation. |
| public static final boolean | |
| public static boolean |
| _isX11 | back to summary |
|---|---|
| private static boolean _isX11 | |
| DEBUG | back to summary |
|---|---|
| protected static final boolean DEBUG | |
| hasAWT | back to summary |
|---|---|
| private static boolean hasAWT | |
| mode | back to summary |
|---|---|
| private static Threading. | |
| singleThreaded | back to summary |
|---|---|
| private static boolean singleThreaded | |
| threadingPlugin | back to summary |
|---|---|
| private static final ToolkitThreadingPlugin threadingPlugin | |
| ThreadingImpl | back to summary |
|---|---|
| private ThreadingImpl() No reason to ever instantiate this class | |
| disableSingleThreading | back to summary |
|---|---|
| public static final void disableSingleThreading() If an implementation of the com.jogamp.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. Users are strongly discouraged from calling this method unless they are aware of all of the consequences and are prepared to enforce some amount of threading restrictions in their applications. Disabling single-threading, for example, may have unintended consequences on GLAutoDrawable implementations such as GLCanvas, GLJPanel and GLPbuffer. Currently there is no supported way to re-enable it once disabled, partly to discourage careless use of this method. This method should be called as early as possible in an application. | |
| getMode | back to summary |
|---|---|
| public static Threading. | |
| invokeOnOpenGLThread | back to summary |
|---|---|
| public static final void invokeOnOpenGLThread(final boolean wait, final Runnable r) throws GLException Executes the passed Runnable on the single thread used for all
OpenGL work in this com.jogamp.opengl API implementation. It is
not specified exactly which thread is used for this
purpose. This method should only be called if the single-thread
model is in use and if the current thread is not the OpenGL
thread (i.e., if | |
| invokeOnWorkerThread | back to summary |
|---|---|
| public static final void invokeOnWorkerThread(final boolean wait, final Runnable r) throws GLException | |
| isOpenGLThread | back to summary |
|---|---|
| public static final boolean isOpenGLThread() throws GLException Indicates whether the current thread is capable of performing OpenGL-related work.
Method always returns | |
| isSingleThreaded | back to summary |
|---|---|
| public static final boolean isSingleThreaded() Indicates whether OpenGL work is being automatically forced to a single thread in this implementation. | |
| isToolkitThread | back to summary |
|---|---|
| public static final boolean isToolkitThread() throws GLException | |
| isX11 | back to summary |
|---|---|
| public static boolean isX11() | |