|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.locks.AbstractOwnableSynchronizer
java.util.concurrent.locks.AbstractQueuedSynchronizer
groovyx.gpars.dataflow.impl.ResizeableCountDownLatch.Sync
private static final class ResizeableCountDownLatch.Sync
Synchronization control For CountDownLatch. Uses AQS state to represent count.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer |
|---|
java.util.concurrent.locks.AbstractQueuedSynchronizer.ConditionObject |
| Field Summary | |
|---|---|
private static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
ResizeableCountDownLatch.Sync(int count)
|
|
| Method Summary | |
|---|---|
void |
decreaseCount()
|
(package private) int |
getCount()
|
void |
increaseCount()
|
int |
tryAcquireShared(int acquires)
|
boolean |
tryReleaseShared(int releases)
|
| Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer |
|---|
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryRelease |
| Methods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer |
|---|
getExclusiveOwnerThread, setExclusiveOwnerThread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
ResizeableCountDownLatch.Sync(int count)
| Method Detail |
|---|
int getCount()
public int tryAcquireShared(int acquires)
tryAcquireShared in class java.util.concurrent.locks.AbstractQueuedSynchronizerpublic boolean tryReleaseShared(int releases)
tryReleaseShared in class java.util.concurrent.locks.AbstractQueuedSynchronizerpublic void increaseCount()
public void decreaseCount()
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||