public static synchronized void lockToolkit() throws NativeWindowException { recurLock.lock(); if (recurLock.getRecursionCount() == 0 && !isJava2DQueueFlusherThread() && !headlessMode) { awtLock(); } }
public int lockSurface() throws GLException { recurLock.lock(); return NativeWindow.LOCK_SUCCESS; }