Home
last modified time | relevance | path

Searched refs:drainPermits (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DSemaphore.java181 final int drainPermits() { in drainPermits() method in Semaphore.Sync
600 public int drainPermits() { in drainPermits() method in Semaphore
601 return sync.drainPermits(); in drainPermits()
/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java397 assertEquals(0, s.drainPermits()); in testDrainPermits()
400 assertEquals(10, s.drainPermits()); in testDrainPermits()
402 assertEquals(0, s.drainPermits()); in testDrainPermits()