Lines Matching refs:check
45 case 2: check(lock.tryLock()); break;
46 case 3: check(lock.tryLock(45, TimeUnit.MINUTES)); break;
75 check(! rwl.isWriteLocked());
86 check(! rwl.isWriteLocked());
95 check(es.awaitTermination(10, TimeUnit.SECONDS));
109 check(! rl.isLocked());
110 check(! rwl.isWriteLocked());
111 check(! rl.isHeldByCurrentThread());
112 check(! rwl.isWriteLockedByCurrentThread());
113 check(! rwl.writeLock().isHeldByCurrentThread());
129 check(! rl.hasQueuedThreads());
130 check(! rwl.hasQueuedThreads());
131 check(! rl.hasQueuedThread(Thread.currentThread()));
132 check(! rwl.hasQueuedThread(Thread.currentThread()));
133 check(rl.isLocked());
134 check(rwl.isWriteLocked());
135 check(rl.isHeldByCurrentThread());
136 check(rwl.isWriteLockedByCurrentThread());
137 check(rwl.writeLock().isHeldByCurrentThread());
161 void check(boolean cond) {if (cond) pass(); else fail();}