Esempio n. 1
0
  public static synchronized void lockToolkit() throws NativeWindowException {
    recurLock.lock();

    if (recurLock.getRecursionCount() == 0 && !isJava2DQueueFlusherThread() && !headlessMode) {
      awtLock();
    }
  }
Esempio n. 2
0
  public static synchronized void unlockToolkit() {
    recurLock.validateLocked();

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

    recurLock.unlock();
  }
Esempio n. 3
0
 public static Exception getLockedStack() {
   return recurLock.getLockedStack();
 }
Esempio n. 4
0
 public static boolean isToolkitLocked() {
   return recurLock.isLocked();
 }