— Try to obtain a lock.
An object of type
Whether to wait to obtain the lock. Defaults to
This function tries to obtain exclusive use of a lock. If
T, and another task owns the lock, it
may wait until the lock has been released. If
NIL it will return true if and only if it succeeded on acquiring