- unlock
Attempts to release this lock.If the current thread is the holder of this lock
then the hold count i
- lock
Acquires the lock.Acquires the lock if it is not held by another thread and
returns immediately, set
- lockInterruptibly
Acquires the lock unless the current thread is Thread#interrupt.Acquires the
lock if it is not held
- <init>
Creates an instance of ReentrantLock with the given fairness policy.
- newCondition
Returns a Condition instance for use with this Lock instance.The returned
Condition instance support
- asCondVar
- getOwner
Returns the thread that currently owns this lock, or null if not owned. When
this method is called b
- tryLock
Acquires the lock if it is not held by another thread within the given waiting
time and the current
- getHoldCount
Queries the number of holds on this lock by the current thread.A thread has a
hold on a lock for eac