public class GLWorkerThread
extends java.lang.Object
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.| Constructor and Description |
|---|
GLWorkerThread() |
| Modifier and Type | Method and Description |
|---|---|
static void |
invokeAndWait(java.lang.Runnable runnable) |
static void |
invokeLater(java.lang.Runnable runnable) |
static boolean |
isStarted()
Indicates whether the OpenGL worker thread was started, i.e.,
whether it is currently in use.
|
static boolean |
isWorkerThread()
Indicates whether the current thread is the OpenGL worker
thread.
|
static void |
start()
Should only be called by Threading class if creation of the
GLWorkerThread was requested via the opengl.1thread system
property.
|
public static void start()
public static void invokeAndWait(java.lang.Runnable runnable)
throws java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
java.lang.reflect.InvocationTargetExceptionjava.lang.InterruptedExceptionpublic static void invokeLater(java.lang.Runnable runnable)
public static boolean isStarted()
public static boolean isWorkerThread()
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.