Acquire the lock
Acquire the lock
Execute comp protected by the lock.
Execute comp protected by the lock.
Get a new Condition object associated with this.
Get a new Condition object associated with this.
The state of the lock: true represents locked
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 lock based upon the test-and-set operation Based on Herlihy & Shavit, Section 7.4.