public final class CriticalSection extends java.util.concurrent.locks.ReentrantLock implements Guard
| Constructor and Description |
|---|
CriticalSection() |
CriticalSection(boolean fair) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CriticalSection |
enter() |
getHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, toString, tryLock, tryLock, unlockpublic CriticalSection()
public CriticalSection(boolean fair)
public CriticalSection enter()