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