[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: Added test case in r61024. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: For what it's worth, here's a test case against the trunk. -- keywords: +patch Added file: http://bugs.python.org/file9521/test_mutex.diff _ Tracker <[EMAIL PROTECTED]> ___

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: On 2008/2/23, Guido van Rossum said in python-dev > According to the docstring it's only meant to be used with sched.py. > Please don't try to make it work with threads! Anyway, this module will be removed, or at least its API hidden, in 3.0. -- nosy:

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Is this module still of any use to anyone? It seems if you wanted a fake mutex, you could just import LockType from dummy_thread. -- nosy: +benjamin.peterson _ Tracker <[EMAIL PROTECTED]>

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Manuel Kaufmann
Manuel Kaufmann added the comment: I tested the patch and I found an error. It was missing a line "if call:" in the unlock function. I added it, and tested again with the ex.py example and it didn't found any threads locked at the same time. -- nosy: +humitos Added file: http://bugs.py

[issue1746071] class mutex doesn't do anything atomically

2008-01-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Making the mutex module thread safe is a low hanging fruit for the bug day. But would it bring anything that the threading module doesn't have? -- nosy: +pitrou _ Tracker <[EMAIL PROTECTED]>

[issue1746071] class mutex doesn't do anything atomically

2008-01-19 Thread Christian Heimes
Christian Heimes added the comment: Making the mutex module thread safe is a low hanging fruit for the bug day. *wink* -- keywords: +easy nosy: +tiran versions: +Python 2.6 -Python 2.5 _ Tracker <[EMAIL PROTECTED]>