org.apache.batik.util
public class HaltingThread extends Thread
Field Summary | |
---|---|
protected boolean | beenHalted
Boolean indicating if this thread has ever been 'halted'. |
Constructor Summary | |
---|---|
HaltingThread() | |
HaltingThread(Runnable r) | |
HaltingThread(String name) | |
HaltingThread(Runnable r, String name) |
Method Summary | |
---|---|
void | clearHalted()
Set's beenHalted to false. |
void | halt()
Set's beenHalted to true. |
static void | haltThread()
Calls 'halt' on Thread.currentThread() if it is an
instance of HaltingThread otherwise it does nothing. |
static void | haltThread(Thread t)
Calls 'halt' on t if it is an instance of
HaltingThread otherwise it does nothing. |
static boolean | hasBeenHalted()
Returns the result of calling hasBeenHalted on
Thread.currentThread(), if it is an instance of
HaltingThread otherwise it returns false. |
static boolean | hasBeenHalted(Thread t)
Returns the result of calling hasBeenHalted on t,
if it is an instance of HaltingThread otherwise it returns false. |
boolean | isHalted()
returns true if someone has halted the thread. |