com.sun.opengl.impl
Class 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.
getFailFastMode
public boolean getFailFastMode()
hasWaiters
public boolean hasWaiters()
isHeld
public boolean isHeld()
Indicates whether this lock is held by the current thread.
lock
public void lock()
throws GLException
Locks this GLContextLock on the current thread. If fail fast
mode is enabled and the GLContextLock is already owned by
another thread, throws GLException.
setFailFastMode
public void setFailFastMode(boolean onOrOff)
unlock
public void unlock()
throws GLException
Unlocks this GLContextLock.
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.