Searched refs:drainPermits (Results 1 – 2 of 2) sorted by relevance
181 final int drainPermits() { in drainPermits() method in Semaphore.Sync600 public int drainPermits() { in drainPermits() method in Semaphore601 return sync.drainPermits(); in drainPermits()
397 assertEquals(0, s.drainPermits()); in testDrainPermits()400 assertEquals(10, s.drainPermits()); in testDrainPermits()402 assertEquals(0, s.drainPermits()); in testDrainPermits()