Home | History | Annotate | Download | only in jsr166

Lines Matching refs:Semaphore

14 import java.util.concurrent.Semaphore;
22 static class PublicSemaphore extends Semaphore {
40 final Semaphore lock;
41 InterruptibleLockRunnable(Semaphore s) { lock = s; }
54 final Semaphore lock;
55 InterruptedLockRunnable(Semaphore s) { lock = s; }
78 void waitForQueuedThreads(Semaphore s) {
89 void acquire(Semaphore s) throws InterruptedException {
94 void acquire(Semaphore s, int permits) throws InterruptedException {
99 void acquire(Semaphore s) {
104 void acquire(Semaphore s, int permits) {
109 void acquire(Semaphore s) {
114 void acquire(Semaphore s, int permits) {
119 void acquire(Semaphore s) throws InterruptedException {
124 void acquire(Semaphore s, int permits) throws InterruptedException {
132 void acquire(Semaphore s) throws InterruptedException {
136 void acquire(Semaphore s, int permits) throws InterruptedException {
149 Semaphore s = new Semaphore(permits, fair);
160 Semaphore s = new Semaphore(permits);
172 Semaphore s = new Semaphore(2, fair);
188 Semaphore s = new Semaphore(0, fair);
201 Semaphore s = new Semaphore(2, fair);
222 final Semaphore pleaseInterrupt = new Semaphore(0, fair);
272 final Semaphore pleaseInterrupt = new Semaphore(-1, fair);
383 Semaphore s = new Semaphore(0, fair);
399 Semaphore s = new Semaphore(10, fair);
440 * a reserialized semaphore has same number of permits and
447 Semaphore s = new Semaphore(3, fair);
452 Semaphore clone = serialClone(s);
463 s = new Semaphore(0, fair);
486 Semaphore s = new Semaphore(2, fair);
518 Semaphore s = new Semaphore(1, fair);
546 final Semaphore s = new Semaphore(0, fair);