Home
last modified time | relevance | path

Searched defs:permits (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DSemaphore.java140 Sync(int permits) { in Sync()
195 NonfairSync(int permits) { in NonfairSync()
210 FairSync(int permits) { in FairSync()
235 public Semaphore(int permits) { in Semaphore()
250 public Semaphore(int permits, boolean fair) { in Semaphore()
436 public void acquire(int permits) throws InterruptedException { in acquire()
463 public void acquireUninterruptibly(int permits) { in acquireUninterruptibly()
495 public boolean tryAcquire(int permits) { in tryAcquire()
550 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) in tryAcquire()
578 public void release(int permits) { in release()
/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java23 PublicSemaphore(int permits) { super(permits); } in PublicSemaphore()
24 PublicSemaphore(int permits, boolean fair) { super(permits, fair); } in PublicSemaphore()
94 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN()
104 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN()
114 void acquire(Semaphore s, int permits) { in tryAcquireN()
124 void acquire(Semaphore s, int permits) throws InterruptedException { in acquire()
136 void acquire(Semaphore s, int permits) throws InterruptedException { in acquire()