public class FIFOSemaphore extends QueuedSemaphore
Modifier and Type | Class and Description |
---|---|
protected static class |
FIFOSemaphore.FIFOWaitQueue
Simple linked list queue used in FIFOSemaphore.
|
QueuedSemaphore.WaitQueue
wq_
ONE_CENTURY, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR
Constructor and Description |
---|
FIFOSemaphore(long initialPermits)
Create a Semaphore with the given initial number of permits.
|
acquire, attempt, getSignallee, precheck, recheck, release, release
public FIFOSemaphore(long initialPermits)