Acquire the Lock.
Acquire the Lock.
Execute comp protected by the lock.
Execute comp protected by the lock.
Get a new Conditoin object associated with this ReentrantLock.
Get a new Conditoin object associated with this ReentrantLock.
Make one attempt to acquire the lock
Make one attempt to acquire the lock
a Boolean indicating whether the attempt was successful.
Make one attempt to acquire the lock; if successful, execute comp and then release the lock; if unsuccessful execute elseComp.
Make one attempt to acquire the lock; if successful, execute comp and then release the lock; if unsuccessful execute elseComp.
Release the Lock.
Release the Lock.
A re-entrant lock. Based on Herlihy & Shavit, Section 8.4.