Website hosting service by

 Back to Index

6.12.1 Mutex Objects

mutex objects have following methods:


test( )
Check whether the mutex is locked.


testandset( )
``Atomic'' test-and-set, grab the lock if it is not set, and return True, otherwise, return False.


lock( function, argument)
Execute function(argument), unless the mutex is locked. In the case it is locked, place the function and argument on the queue. See unlock for explanation of when function(argument) is executed in that case.


unlock( )
Unlock the mutex if queue is empty, otherwise execute the first element in the queue.



2002-2004 Webhosting Service


Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to


Domain registration : Buy domain name or register domain name from $5.95/year only


Cheap domain registration : Register domain name or buy domain name, including free domain hosting services offers cheap domain registration, domain name transfer and domain search services