Methods
|
|
attempt
locked
obtain
release
|
|
attempt
|
attempt ()
try to obtain the lock, return boolean success
|
|
locked
|
locked ()
returns True if any thread IN THIS PROCESS
has obtained the lock, else False
|
|
obtain
|
obtain ()
wait to obtain the lock, returns None
|
|
release
|
release ()
release an obtained lock, returns None
|
|