Пример #1
0
 public static void start(boolean showGUI, DeadlockListener deadlockListener) {
   gui = showGUI;
   listener = deadlockListener;
   if (thread != null) {
     throw new IllegalStateException();
   }
   thread = new DeadlockThread();
   thread.setDaemon(true);
   thread.start();
 }
Пример #2
0
 public static void stop() {
   thread.interrupt();
   thread = null;
 }