setName("AWT-Shutdown"); //$NON-NLS-1$ setDaemon(false);
synchronized (this) { notifyAll(); // synchronize the startup while (true) { try { wait(); } catch (InterruptedException e) { } if (shouldStop) { notifyAll(); // synchronize the shutdown return; } } }
synchronized (this) { shouldStop = true; notifyAll(); try { wait(); } catch (InterruptedException e) { // awt.27=Shutdown thread was interrupted while stopping throw new RuntimeException( Messages.getString("awt.27")); //$NON-NLS-1$ } }
synchronized (this) { super.start(); try { wait(); } catch (InterruptedException e) { // awt.26=Shutdown thread was interrupted while starting throw new RuntimeException( Messages.getString("awt.26")); //$NON-NLS-1$ } }