|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.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.
Constructor Summary | |
---|---|
GLContextLock()
|
Method Summary | |
---|---|
boolean |
getFailFastMode()
|
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 |
Constructor Detail |
---|
public GLContextLock()
Method Detail |
---|
public void lock() throws GLException
GLException
public void unlock() throws GLException
GLException
public boolean isHeld()
public void setFailFastMode(boolean onOrOff)
public boolean getFailFastMode()
public boolean hasWaiters()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |