|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.nativewindow.impl.x11.X11Util
public class X11Util
Contains a thread safe X11 utility to retrieve thread local display connection,
as well as the static global display connection.
The TLS variant is thread safe per se, but be aware of the memory leak risk
where an application heavily utilizing this class on temporary new threads.
Nested Class Summary | |
---|---|
static class |
X11Util.NamedDisplay
|
Field Summary | |
---|---|
static String |
nullDisplayName
|
Method Summary | |
---|---|
static long |
closeThreadLocalDisplay(long handle)
|
static long |
closeThreadLocalDisplay(String name)
Decrease the reference count of this thread named display. |
static long |
createThreadLocalDisplay(String name)
Returns this thread named display. |
static Map |
getCurrentDisplayMap()
Returns a clone of the thread local display map, you may Object.wait() on it |
static String |
getNameOfDisplay(long handle)
|
static void |
initSingleton()
|
static boolean |
markThreadLocalDisplayUncloseable(long handle)
|
static boolean |
setSynchronizeDisplay(long handle,
boolean onoff)
|
static int |
shutdown(boolean realXClosePendingDisplays,
boolean verbose)
Returns the number of unclosed X11 Displays. |
static String |
validateDisplayName(String name)
|
static String |
validateDisplayName(String name,
long handle)
|
static void |
XLockDisplay(long handle)
|
static void |
XUnlockDisplay(long handle)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String nullDisplayName
Method Detail |
---|
public static void initSingleton()
public static int shutdown(boolean realXClosePendingDisplays, boolean verbose)
realXClosePendingDisplays
- if true, call XCloseDisplay on the remaining onespublic static Map getCurrentDisplayMap()
Object.wait()
on it
public static long createThreadLocalDisplay(String name)
public static long closeThreadLocalDisplay(String name)
public static long closeThreadLocalDisplay(long handle)
public static boolean markThreadLocalDisplayUncloseable(long handle)
public static String validateDisplayName(String name)
public static String validateDisplayName(String name, long handle)
public static boolean setSynchronizeDisplay(long handle, boolean onoff)
public static String getNameOfDisplay(long handle)
public static void XLockDisplay(long handle)
public static void XUnlockDisplay(long handle)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |