mutex.mutex¶
Methods¶
__init__() |
Create a new mutex – initially unlocked. |
lock(function, argument) |
Lock a mutex, call the function with supplied argument when it is acquired. |
test() |
Test the locked bit of the mutex. |
testandset() |
Atomic test-and-set – grab the lock if it is not set, return True if it succeeded. |
unlock() |
Unlock a mutex. |