Searched refs:PublicSemaphore (Results 1 – 1 of 1) sorted by relevance
35 static class PublicSemaphore extends Semaphore { class in SemaphoreTest36 PublicSemaphore(int permits) { super(permits); } in PublicSemaphore() method in SemaphoreTest.PublicSemaphore37 PublicSemaphore(int permits, boolean fair) { super(permits, fair); } in PublicSemaphore() method in SemaphoreTest.PublicSemaphore77 void waitForQueuedThread(PublicSemaphore s, Thread t) { in waitForQueuedThread()234 final PublicSemaphore s = new PublicSemaphore(0, fair); in testInterruptible()284 final PublicSemaphore s = new PublicSemaphore(0, fair); in testUninterruptible()324 final PublicSemaphore lock = new PublicSemaphore(1, fair); in testHasQueuedThreads()347 final PublicSemaphore lock = new PublicSemaphore(1, fair); in testGetQueueLength()370 final PublicSemaphore lock = new PublicSemaphore(1, fair); in testGetQueuedThreads()425 PublicSemaphore s = new PublicSemaphore(10, fair); in testReducePermitsIAE()[all …]