Searched refs:sem (Results 1 – 1 of 1) sorted by relevance
312 final Semaphore sem = new Semaphore(0); in test_getState() local317 while (!sem.hasQueuedThreads()) {} in test_getState()318 sem.release(); in test_getState()325 sem.acquire(); in test_getState()336 sem.release(); in test_getState()350 sem.acquire(); in test_getState()358 sem.release(); in test_getState()364 sem.acquire(); in test_getState()