Class WideLatch
java.lang.Object
org.cojen.tupl.util.WideLatch
Non-reentrant latch implementation which supports highly concurrent shared requests, but
exclusive requests are more expensive. The implementation distributes shared state over
multiple cells, and so it can consume more memory than a regular latch.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
final void
final boolean
final void
final void
final boolean
final boolean
tryAcquireSharedNanos
(long nanosTimeout)
-
Constructor Details
-
WideLatch
public WideLatch()
-
-
Method Details
-
acquireExclusive
public final void acquireExclusive() -
releaseExclusive
public final void releaseExclusive() -
hasQueuedThreads
public final boolean hasQueuedThreads()