protected static class AbstractLatch.CountSync extends AbstractQueuedSynchronizer
AbstractQueuedSynchronizer,
Serialized FormAbstractQueuedSynchronizer.ConditionObject| Modifier and Type | Method and Description |
|---|---|
void |
add() |
int |
getCount() |
void |
setCount(int count) |
int |
tryAcquireShared(int numberOfAqcquires) |
boolean |
tryReleaseShared(int numberOfReleases) |
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleasegetExclusiveOwnerThread, setExclusiveOwnerThreadpublic int getCount()
public void setCount(int count)
public int tryAcquireShared(int numberOfAqcquires)
tryAcquireShared in class AbstractQueuedSynchronizerpublic void add()
public boolean tryReleaseShared(int numberOfReleases)
tryReleaseShared in class AbstractQueuedSynchronizerCopyright © 2022 The Apache Software Foundation. All rights reserved.