Package co.paralleluniverse.strands.concurrent
Concurrency primitives for strands - ports of
java.util.concurrent
classes compatible with strands-
Class Summary Class Description AbstractOwnableSynchronizer A synchronizer that may be exclusively owned by a strand.AbstractQueuedLongSynchronizer A version ofAbstractQueuedSynchronizer
in which synchronization state is maintained as along
.AbstractQueuedSynchronizer Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues.CountDownLatch A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes.CyclicBarrier A synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point.Phaser A reusable synchronization barrier, similar in functionality toCyclicBarrier
andCountDownLatch
but supporting more flexible usage.ReentrantLock A reentrant mutual exclusionLock
with the same basic behavior and semantics as the implicit monitor lock accessed usingsynchronized
methods and statements, but with extended capabilities.ReentrantReadWriteLock An implementation ofReadWriteLock
supporting similar semantics toReentrantLock
.ReentrantReadWriteLock.ReadLock The lock returned by methodReentrantReadWriteLock.readLock()
.ReentrantReadWriteLock.WriteLock The lock returned by methodReentrantReadWriteLock.writeLock()
.Semaphore A counting semaphore.StampedLock A capability-based lock with three modes for controlling read/write access.