Threading class. The GLWorkerThread
replaces the original AWT event queue thread-based mechanism for
two reasons: first, more than one AWT event queue thread may be
spawned, for example if a dialog is being shown; second, it avoids
blocking the AWT event queue thread during OpenGL rendering.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static volatile Throwable | |
| private static Object | |
| private static List | |
| private static volatile boolean | |
| private static volatile boolean | |
| private static volatile Thread | |
| private static volatile Runnable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static String | |
| public static void | |
| public static void | |
| public static void | |
| public static boolean | isStarted()
Indicates whether the OpenGL worker thread was started, i.e., whether it is currently in use. |
| public static boolean | |
| public static void | start()
Should only be called by Threading class if creation of the GLWorkerThread was requested via the opengl.1thread system property. |
| exception | back to summary |
|---|---|
| private static volatile Throwable exception | |
| lock | back to summary |
|---|---|
| private static Object lock | |
| queue | back to summary |
|---|---|
| private static List<Runnable> queue | |
| shouldTerminate | back to summary |
|---|---|
| private static volatile boolean shouldTerminate | |
| started | back to summary |
|---|---|
| private static volatile boolean started | |
| thread | back to summary |
|---|---|
| private static volatile Thread thread | |
| work | back to summary |
|---|---|
| private static volatile Runnable work | |
| GLWorkerThread | back to summary |
|---|---|
| public GLWorkerThread() | |
| getThreadName | back to summary |
|---|---|
| protected static String getThreadName() | |
| invoke | back to summary |
|---|---|
| public static void invoke(final boolean wait, final Runnable runnable) throws InvocationTargetException, InterruptedException | |
| invokeAndWait | back to summary |
|---|---|
| public static void invokeAndWait(final Runnable runnable) throws InvocationTargetException, InterruptedException | |
| invokeLater | back to summary |
|---|---|
| public static void invokeLater(final Runnable runnable) | |
| isStarted | back to summary |
|---|---|
| public static boolean isStarted() Indicates whether the OpenGL worker thread was started, i.e., whether it is currently in use. | |
| isWorkerThread | back to summary |
|---|---|
| public static boolean isWorkerThread() Indicates whether the current thread is the OpenGL worker thread. | |
| start | back to summary |
|---|---|
| public static void start() Should only be called by Threading class if creation of the
GLWorkerThread was requested via the opengl.1thread system
property. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| isRunning | back to summary |
|---|---|
| pack-priv volatile boolean isRunning | |
| WorkerRunnable | back to summary |
|---|---|
| pack-priv WorkerRunnable() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |