This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients
Date 2007-07-02.03:10:52
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hi David,
I just fired up the docs and found this:
"The mutex module defines a class that allows mutual-exclusion via acquiring and releasing locks. It does not require (or imply) threading or multi-tasking, though it could be useful for those purposes."

The docs dont say about threads using mutex object, but instead say if you want to use threading you can use mutex obj.

How are you using mutex with threads, can you please provide some information.

If muobj is an instance of mutex class.
muobj.testandset() for process-a will set the lock.
muobj.testandset() for process-b will be dealt with self.lock = True and wont be able to set.
History
Date User Action Args
2007-08-23 14:58:13adminlinkissue1746071 messages
2007-08-23 14:58:13admincreate