|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.impl.GLContextLock
public class GLContextLock
Implements the makeCurrent / release locking behavior of the GLContext class. When "fail fast mode" is enabled, attempts to lock the same GLContextLock on more than one thread cause GLException to be raised. This lock is not recursive. Attempts to lock it more than once on a given thread will cause GLException to be raised.
Field Summary | |
---|---|
protected static boolean |
DEBUG
|
Constructor Summary | |
---|---|
GLContextLock()
|
Method Summary | |
---|---|
boolean |
getFailFastMode()
|
Exception |
getLockedStack()
holding the owners stack trace when lock is acquired and DEBUG is true |
boolean |
hasWaiters()
|
boolean |
isHeld()
Indicates whether this lock is held by the current thread. |
void |
lock()
Locks this GLContextLock on the current thread. |
void |
setFailFastMode(boolean onOrOff)
|
void |
unlock()
Unlocks this GLContextLock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final boolean DEBUG
Constructor Detail |
---|
public GLContextLock()
Method Detail |
---|
public final void lock() throws GLException
GLException
public final void unlock() throws GLException
GLException
public final boolean isHeld()
public final void setFailFastMode(boolean onOrOff)
public final boolean getFailFastMode()
public final boolean hasWaiters()
public final Exception getLockedStack()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |