public class TimingLatch extends LatchImpl
| Modifier and Type | Class and Description |
|---|---|
class |
TimingLatch.AcquireCompleteEvent |
class |
TimingLatch.AcquireRequestEvent |
class |
TimingLatch.ReleaseEvent |
| Constructor and Description |
|---|
TimingLatch(LatchContext context,
boolean debug) |
TimingLatch(LatchContext context,
boolean debug,
int waitThreshold,
int holdThreshold) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireExclusive()
Acquires a latch for exclusive/write access.
|
void |
release()
Releases the latch.
|
acquireExclusiveNoWait, acquireShared, clearStats, debugString, getExclusiveOwner, getNWaiters, getStats, isExclusiveOnly, isExclusiveOwner, isOwner, releaseIfOwner, toStringgetHoldCount, getOwner, getQueuedThreads, getQueueLength, getWaitingThreads, getWaitQueueLength, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isHeldByCurrentThread, isLocked, lock, lockInterruptibly, newCondition, tryLock, tryLock, unlockpublic TimingLatch(LatchContext context, boolean debug)
public TimingLatch(LatchContext context, boolean debug, int waitThreshold, int holdThreshold)
public void release()
Latchpublic void acquireExclusive()
LatchacquireExclusive in interface LatchacquireExclusive in class LatchImplCopyright © 2024. All rights reserved.