Home | History | Annotate | Download | only in util

Lines Matching defs:thread

24  * A thread which waits for a period of time and then interrupts a specific other thread.
25 * Can call {@link Thread#interrupt()} to get a thread out of a blocking wait, or
26 * {@link Socket#close()} to stop a thread from blocking on a socket read or write.
30 public class Alarm extends Thread {
31 private final List<Thread> mInterruptThreads = new ArrayList<Thread>();
54 public void addThread(Thread intThread) {
69 Thread.sleep(mTimeoutTime);
82 for (Thread thread : mInterruptThreads) {
83 thread.interrupt();