Home
last modified time | relevance | path

Searched refs:Semaphore (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DSemaphoreTest.java41 import java.util.concurrent.Semaphore;
58 static class PublicSemaphore extends Semaphore {
76 final Semaphore lock;
77 InterruptibleLockRunnable(Semaphore s) { lock = s; } in InterruptibleLockRunnable()
90 final Semaphore lock;
91 InterruptedLockRunnable(Semaphore s) { lock = s; } in InterruptedLockRunnable()
114 void waitForQueuedThreads(Semaphore s) { in waitForQueuedThreads()
125 void acquire(Semaphore s) throws InterruptedException { in acquire()
130 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN()
135 void acquire(Semaphore s) { in acquireUninterruptibly()
[all …]
DJSR166TestCase.java114 import java.util.concurrent.Semaphore;
1792 public void await(Semaphore semaphore) {
/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java15 import java.util.concurrent.Semaphore;
35 static class PublicSemaphore extends Semaphore {
53 final Semaphore lock;
54 InterruptibleLockRunnable(Semaphore s) { lock = s; } in InterruptibleLockRunnable()
67 final Semaphore lock;
68 InterruptedLockRunnable(Semaphore s) { lock = s; } in InterruptedLockRunnable()
91 void waitForQueuedThreads(Semaphore s) { in waitForQueuedThreads()
102 void acquire(Semaphore s) throws InterruptedException { in acquire()
107 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN()
112 void acquire(Semaphore s) { in acquireUninterruptibly()
[all …]
DJSR166TestCase.java50 import java.util.concurrent.Semaphore;
1520 public void await(Semaphore semaphore) {
/libcore/ojluni/src/test/java/lang/ref/
DCleanerTest.java34 import java.util.concurrent.Semaphore;
320 static void checkCleaned(Semaphore semaphore, boolean expectCleaned, String msg) { in checkCleaned()
359 Semaphore s1 = new Semaphore(0); in setupPhantom()
375 Semaphore s1 = new Semaphore(0); in setupPhantomSubclass()
396 Semaphore s1 = new Semaphore(0); in setupPhantomSubclassException()
421 private final Semaphore semaphore;
434 Semaphore semaphore) { in CleanableCase()
443 Semaphore semaphore, in CleanableCase()
488 public Semaphore getSemaphore() { in getSemaphore()
573 Semaphore s1 = new Semaphore(0); in testReferentNotAvailable()
/libcore/ojluni/src/main/java/java/util/concurrent/
DSemaphore.java162 public class Semaphore implements java.io.Serializable { class
270 public Semaphore(int permits) { in Semaphore() method in Semaphore
285 public Semaphore(int permits, boolean fair) { in Semaphore() method in Semaphore
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java22 import java.util.concurrent.Semaphore;
312 final Semaphore sem = new Semaphore(0); in test_getState()
/libcore/luni/src/test/java/libcore/java/net/
DFtpURLConnectionTest.java48 import java.util.concurrent.Semaphore;
392 private final Semaphore connectionAttempts = new Semaphore(0);
/libcore/
Dopenjdk_java_files.bp1022 "ojluni/src/main/java/java/util/concurrent/Semaphore.java",
DEXPECTED_UPSTREAM1073 …in/java/java/util/concurrent/Semaphore.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/java/…
/libcore/api/
Dcurrent.txt16291 public class Semaphore implements java.io.Serializable {
16292 ctor public Semaphore(int);
16293 ctor public Semaphore(int, boolean);