Searched refs:sem (Results 1 – 4 of 4) sorted by relevance
119 final Semaphore sem = new Semaphore(0); in testStopWait() local121 sem.release(); in testStopWait()132 sem.acquire(); in testStopWait()146 final Semaphore sem = new Semaphore(0); in testInterruptWait() local148 sem.release(); in testInterruptWait()159 sem.acquire(); in testInterruptWait()178 final Semaphore sem = new Semaphore(0); in testStopInNative() local180 sem.release(); in testStopInNative()187 sem.acquire(); in testStopInNative()220 final Semaphore sem = new Semaphore(0); in testStopRecur() local[all …]
46 public static void LoopAllocFreeEnv(Semaphore sem, Semaphore delay) { in LoopAllocFreeEnv() argument47 sem.release(); in LoopAllocFreeEnv()67 final Semaphore sem = new Semaphore(0); in run() local69 Thread thr = new Thread(() -> { LoopAllocFreeEnv(sem, delay); }, "LoopNative"); in run()72 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()