Re: question about mutex.py

2006-01-06 Thread m_palmer45
yes, I read it, and I even know about threading's existence. I just thought that if something claims to be atomic, it better should be. -- http://mail.python.org/mailman/listinfo/python-list

question about mutex.py

2006-01-06 Thread m_palmer45
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 lock: def testandset(self): """Atomic test-and-set -- grab the lock if it is not set, return True if it succeeded.""" if not self.l