Searched refs:availablePermits (Results 1 - 3 of 3) sorted by relevance

/openjdk7/jdk/test/java/util/concurrent/Semaphore/
H A DPermitOverflow.java47 if (sem.availablePermits() != Integer.MAX_VALUE - 1)
55 if (sem.availablePermits() != Integer.MAX_VALUE)
80 if (sem.availablePermits() != Integer.MIN_VALUE + 1)
88 if (sem.availablePermits() != Integer.MIN_VALUE)
H A DRacingReleases.java95 sem.availablePermits(),
100 if (sem.availablePermits() != 0)
101 throw new Error(String.valueOf(sem.availablePermits()));
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DSemaphore.java625 public int availablePermits() { method in class:Semaphore

Completed in 488 milliseconds