- 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
- isFair
Returns true if this lock has fairness set true.
- tryLock
Acquires the lock if it is not held by another thread within the given waiting
time and the current