Searched refs:Semaphore (Results 1 – 11 of 11) sorted by relevance
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SemaphoreTest.java | 41 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 …]
|
D | JSR166TestCase.java | 114 import java.util.concurrent.Semaphore; 1792 public void await(Semaphore semaphore) {
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | SemaphoreTest.java | 15 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 …]
|
D | JSR166TestCase.java | 50 import java.util.concurrent.Semaphore; 1520 public void await(Semaphore semaphore) {
|
/libcore/ojluni/src/test/java/lang/ref/ |
D | CleanerTest.java | 34 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/ |
D | Semaphore.java | 162 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/ |
D | OldThreadTest.java | 22 import java.util.concurrent.Semaphore; 312 final Semaphore sem = new Semaphore(0); in test_getState()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | FtpURLConnectionTest.java | 48 import java.util.concurrent.Semaphore; 392 private final Semaphore connectionAttempts = new Semaphore(0);
|
/libcore/ |
D | openjdk_java_files.bp | 1022 "ojluni/src/main/java/java/util/concurrent/Semaphore.java",
|
D | EXPECTED_UPSTREAM | 1073 …in/java/java/util/concurrent/Semaphore.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/java/…
|
/libcore/api/ |
D | current.txt | 16291 public class Semaphore implements java.io.Serializable { 16292 ctor public Semaphore(int); 16293 ctor public Semaphore(int, boolean);
|