com.jogamp.nativewindow.impl.jawt
Class JAWTToolkitLock

java.lang.Object
  extended by 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.


Field Summary
 
Fields inherited from interface javax.media.nativewindow.ToolkitLock
TRACE_LOCK
 
Constructor Summary
protected JAWTToolkitLock()
          Singleton via JAWTUtil.getJAWTToolkitLock()
 
Method Summary
 void lock()
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAWTToolkitLock

protected JAWTToolkitLock()
Singleton via JAWTUtil.getJAWTToolkitLock()

Method Detail

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.