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.java141 Sync(int permits) { in Sync()
196 NonfairSync(int permits) { in NonfairSync()
211 FairSync(int permits) { in FairSync()
236 public Semaphore(int permits) { in Semaphore()
251 public Semaphore(int permits, boolean fair) { in Semaphore()
437 public void acquire(int permits) throws InterruptedException { in acquire()
464 public void acquireUninterruptibly(int permits) { in acquireUninterruptibly()
496 public boolean tryAcquire(int permits) { in tryAcquire()
551 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) in tryAcquire()
579 public void release(int permits) { in release()
/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java35 PublicSemaphore(int permits) { super(permits); } in PublicSemaphore()
36 PublicSemaphore(int permits, boolean fair) { super(permits, fair); } in PublicSemaphore()
106 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN()
116 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN()
126 void acquire(Semaphore s, int permits) { in tryAcquireN()
136 void acquire(Semaphore s, int permits) throws InterruptedException { in acquire()
148 void acquire(Semaphore s, int permits) throws InterruptedException { in acquire()