private static final class ModCountDownLatch.Sync
extends java.util.concurrent.locks.AbstractQueuedSynchronizer
| Modifier | Constructor and Description |
|---|---|
private |
ModCountDownLatch.Sync(int count)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
int |
tryAcquireShared(int acquires) |
boolean |
tryReleaseShared(int releases) |
void |
updateCount()
Update the state
|
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, tryReleaseprivate ModCountDownLatch.Sync(int count)
count - The initial count.public int getCount()
public void updateCount()
public int tryAcquireShared(int acquires)
tryAcquireShared in class java.util.concurrent.locks.AbstractQueuedSynchronizeracquires - public boolean tryReleaseShared(int releases)
tryReleaseShared in class java.util.concurrent.locks.AbstractQueuedSynchronizerreleases -