Lines Matching refs:Thread
56 private static class TestCapacityThread extends Thread {
70 Thread t = new Thread(null, new TestDaemonThread(), "TestDaemonThread", 7168); in testThreadDaemons()
91 Thread.currentThread().setDaemon(true); in run()
98 Thread.sleep(2000); in run()
110 Thread.currentThread().interrupt(); in testSleepZero()
112 Thread.sleep(0); in testSleepZero()
115 if (Thread.currentThread().isInterrupted()) { in testSleepZero()
124 Thread thread = new Thread() { in testSetName()
146 t1.setPriority(Thread.MAX_PRIORITY); in testThreadPriorities()
149 if (supportsThreadPriorities() && (t1.getNativePriority() != Thread.MAX_PRIORITY)) { in testThreadPriorities()
157 if (supportsThreadPriorities() && (t2.getNativePriority() != Thread.MAX_PRIORITY)) { in testThreadPriorities()
168 static class PriorityStoringThread extends Thread {
180 setPriority(Thread.MAX_PRIORITY); in run()