question about mutex.py
exarkun at divmod.com
Fri Jan 6 17:54:38 EST 2006
On 6 Jan 2006 14:44:39 -0800, m_palmer45 at yahoo.ca wrote:
>Hi, I was looking at the code in the standard lib's mutex.py, which is
>used for queuing function calls. Here is how it lets you acquire a
Did you read the module docstring?
Of course, no multi-threading is implied -- hence the funny interface
for lock, where a function is called once the lock is aquired.
If you are looking for a mutex suitable for multithreaded use, see the threading module.
More information about the Python-list