Searched refs:sem (Results 1 – 4 of 4) sorted by relevance
97 final Semaphore sem = new Semaphore(0); in testStopWait() local99 sem.release(); in testStopWait()110 sem.acquire(); in testStopWait()124 final Semaphore sem = new Semaphore(0); in testInterruptWait() local126 sem.release(); in testInterruptWait()137 sem.acquire(); in testInterruptWait()156 final Semaphore sem = new Semaphore(0); in testStopInNative() local158 sem.release(); in testStopInNative()165 sem.acquire(); in testStopInNative()198 final Semaphore sem = new Semaphore(0); in testStopRecur() local[all …]
45 public static void LoopAllocFreeEnv(Semaphore sem) { in LoopAllocFreeEnv() argument46 sem.release(); in LoopAllocFreeEnv()60 final Semaphore sem = new Semaphore(0); in run() local61 Thread thr = new Thread(() -> { LoopAllocFreeEnv(sem); }, "LoopNative"); in run()64 sem.acquire(); in run()
59 final Semaphore sem = new Semaphore(0); in testLockWait() local61 sem.release(); in testLockWait()69 sem.acquire(); in testLockWait()93 final Semaphore sem = new Semaphore(0); in testNotifyWait() local97 sem.release(); in testNotifyWait()107 sem.acquire(); in testNotifyWait()
82 final Semaphore sem = new Semaphore(0); in run() local89 sem.release(); in run()94 sem.acquire(); in run()