41package com.jogamp.opengl;
43import jogamp.opengl.ThreadingImpl;
147 return ThreadingImpl.getMode();
164 ThreadingImpl.disableSingleThreading();
170 return ThreadingImpl.isSingleThreaded();
176 return ThreadingImpl.isToolkitThread();
188 return ThreadingImpl.isOpenGLThread();
202 ThreadingImpl.invokeOnOpenGLThread(wait, r);
218 public static final void invoke(
final boolean wait,
final Runnable r,
final Object lock)
throws GLException {
220 (
null == lock || !Thread.holdsLock(lock) ) ) {
A generic exception for OpenGL errors used throughout the binding as a substitute for RuntimeExceptio...
This API provides access to the threading model for the implementation of the classes in this package...
static Mode getMode()
Returns the threading mode.
static final boolean isSingleThreaded()
Indicates whether OpenGL work is being automatically forced to a single thread in this implementation...
static final void disableSingleThreading()
If an implementation of the com.jogamp.opengl APIs offers a multithreading option but the default beh...
static final boolean isOpenGLThread()
Indicates whether the current thread is capable of performing OpenGL-related work.
static final void invoke(final boolean wait, final Runnable r, final Object lock)
If not isOpenGLThread() and the lock is not being hold by this thread, invoke Runnable r on the OpenG...
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....
static final boolean isToolkitThread()
Indicates whether the current thread is the designated toolkit thread, if such semantics exists.
ST_WORKER
Single-Threaded OpenGL on dedicated worker thread.
MT
Full multithreaded OpenGL, i.e.
ST_AWT
Single-Threaded OpenGL on AWT EDT.