Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public static void stop() {
   thread.interrupt();
   thread = null;
 }