Searched refs:Semaphore (Results 1 - 5 of 5) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
H A DSemaphoreTest.java15 import java.util.concurrent.Semaphore;
35 static class PublicSemaphore extends Semaphore {
53 final Semaphore lock;
54 InterruptibleLockRunnable(Semaphore s) { lock = s; }
67 final Semaphore lock;
68 InterruptedLockRunnable(Semaphore s) { lock = s; }
91 void waitForQueuedThreads(Semaphore s) {
102 void acquire(Semaphore s) throws InterruptedException {
107 void acquire(Semaphore s, int permits) throws InterruptedException {
112 void acquire(Semaphore
[all...]
H A DJSR166TestCase.java50 import java.util.concurrent.Semaphore;
1480 public void await(Semaphore semaphore) {
1483 fail("timed out waiting for Semaphore for "
/libcore/luni/src/main/java/java/util/concurrent/
H A DSemaphore.java17 * However, no actual permit objects are used; the {@code Semaphore} just
26 * private final Semaphore available = new Semaphore(MAX_AVAILABLE, true);
121 * them unless its acquire came first and Semaphore {@code s} is in
133 public class Semaphore implements java.io.Serializable { class in inherits:java.io.Serializable
234 * Creates a {@code Semaphore} with the given number of
241 public Semaphore(int permits) { method in class:Semaphore
246 * Creates a {@code Semaphore} with the given number of
256 public Semaphore(int permits, boolean fair) { method in class:Semaphore
581 * have acquired that permit by calling {@link Semaphore#acquir
[all...]
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldThreadTest.java22 import java.util.concurrent.Semaphore;
311 final Semaphore sem = new Semaphore(0);
/libcore/
H A Dnon_openjdk_java_files.mk136 luni/src/main/java/java/util/concurrent/Semaphore.java \

Completed in 90 milliseconds