Home | History | Annotate | Download | only in statements

Lines Matching defs:thread

63          * thread. This can be useful for disabling timeouts in environments
100 Thread thread = new Thread(task, "Time-limited test");
101 thread.setDaemon(true);
102 thread.start();
104 Throwable throwable = getResult(task, thread);
115 private Throwable getResult(FutureTask<Throwable> task, Thread thread) {
123 return e; // caller will re-throw; no need to call Thread.interrupt()
128 return createTimeoutException(thread);
132 private Exception createTimeoutException(Thread thread) {
133 StackTraceElement[] stackTrace = thread.getStackTrace();
137 thread.interrupt();