Пример #1
0
  public static synchronized void lockToolkit() throws NativeWindowException {
    recurLock.lock();

    if (recurLock.getRecursionCount() == 0 && !isJava2DQueueFlusherThread() && !headlessMode) {
      awtLock();
    }
  }
Пример #2
0
  public static synchronized void unlockToolkit() {
    recurLock.validateLocked();

    if (recurLock.getRecursionCount() == 0 && !isJava2DQueueFlusherThread() && !headlessMode) {
      awtUnlock();
    }

    recurLock.unlock();
  }
Пример #3
0
 public Exception getLockedStack() {
   return recurLock.getLockedStack();
 }
Пример #4
0
 public boolean isSurfaceLocked() {
   return recurLock.isLocked();
 }
Пример #5
0
 public void unlockSurface() {
   recurLock.unlock();
 }
Пример #6
0
 public int lockSurface() throws GLException {
   recurLock.lock();
   return NativeWindow.LOCK_SUCCESS;
 }
Пример #7
0
 public static boolean isToolkitLocked() {
   return recurLock.isLocked();
 }