com.jogamp.nativewindow.impl.jawt.x11
Class X11JAWTToolkitLock

java.lang.Object
  extended by com.jogamp.nativewindow.impl.jawt.x11.X11JAWTToolkitLock
All Implemented Interfaces:
ToolkitLock

public class X11JAWTToolkitLock
extends Object
implements ToolkitLock

Implementing a recursive ToolkitLock utilizing JAWT's AWT lock via JAWTUtil.lockToolkit() and X11Util.XLockDisplay(long).
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
X11JAWTToolkitLock(long displayHandle)
           
 
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

X11JAWTToolkitLock

public X11JAWTToolkitLock(long displayHandle)
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.