Searched refs:PublicSemaphore (Results 1 – 1 of 1) sorted by relevance
22 static class PublicSemaphore extends Semaphore { class in SemaphoreTest23 PublicSemaphore(int permits) { super(permits); } in PublicSemaphore() method in SemaphoreTest.PublicSemaphore24 PublicSemaphore(int permits, boolean fair) { super(permits, fair); } in PublicSemaphore() method in SemaphoreTest.PublicSemaphore64 void waitForQueuedThread(PublicSemaphore s, Thread t) { in waitForQueuedThread()221 final PublicSemaphore s = new PublicSemaphore(0, fair); in testInterruptible()271 final PublicSemaphore s = new PublicSemaphore(0, fair); in testUninterruptible()311 final PublicSemaphore lock = new PublicSemaphore(1, fair); in testHasQueuedThreads()334 final PublicSemaphore lock = new PublicSemaphore(1, fair); in testGetQueueLength()357 final PublicSemaphore lock = new PublicSemaphore(1, fair); in testGetQueuedThreads()412 PublicSemaphore s = new PublicSemaphore(10, fair); in testReducePermitsIAE()[all …]