AbstractQueuedLongSynchronizer

public abstract class AbstractQueuedLongSynchronizer extends AbstractOwnableSynchronizer
implements Serializable

A version of AbstractQueuedSynchronizer in which synchronization state is maintained as a long. This class has exactly the same structure, properties, and methods as AbstractQueuedSynchronizer with the exception that all state-related parameters and results are defined as long rather than int. This class may be useful when creating synchronizers such as multilevel locks and barriers that require 64 bits of state.

See AbstractQueuedSynchronizer for usage notes and examples.

Nested Class Summary

class AbstractQueuedLongSynchronizer.ConditionObject Condition implementation for a AbstractQueuedLongSynchronizer serving as the basis of a Lock implementation. 

Protected Constructor Summary

AbstractQueuedLongSynchronizer()
Creates a new AbstractQueuedLongSynchronizer instance with initial synchronization state of zero.

Public Method Summary

final void
acquire(long arg)
Acquires in exclusive mode, ignoring interrupts.
final void
acquireInterruptibly(long arg)
Acquires in exclusive mode, aborting if interrupted.
final void
acquireShared(long arg)
Acquires in shared mode, ignoring interrupts.
final void
acquireSharedInterruptibly(long arg)
Acquires in shared mode, aborting if interrupted.
final Collection<Thread>
getExclusiveQueuedThreads()
Returns a collection containing threads that may be waiting to acquire in exclusive mode.
final