com.jogamp.nativewindow.impl.jawt
Class JAWTToolkitLock
java.lang.Object
com.jogamp.nativewindow.impl.jawt.JAWTToolkitLock
- All Implemented Interfaces:
- ToolkitLock
public class JAWTToolkitLock
- extends Object
- implements ToolkitLock
Implementing a singleton global recursive ToolkitLock
utilizing JAWT's AWT lock via JAWTUtil.lockToolkit()
.
This strategy should only be used if AWT is using the underlying native windowing toolkit
in a not intrinsic thread safe manner, e.g. under X11 where no XInitThreads() call
is issued before any other X11 usage. This is the current situation for e.g. Webstart or Applets.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAWTToolkitLock
protected JAWTToolkitLock()
- Singleton via
JAWTUtil.getJAWTToolkitLock()
lock
public final void lock()
- Specified by:
lock
in interface ToolkitLock
unlock
public final void unlock()
- Specified by:
unlock
in interface ToolkitLock
Copyright 2010 JogAmp Community.