Because of multithreading semantics, this is not reliable.

Olaf Meding OlafMeding at
Thu May 4 14:24:32 CEST 2006

> return result   before that line, some other thread added a value !

Sure, but that is the nature of using threads and a mutex.  I hope you are
you not saying that every function that uses a mutex should have a comment
saying this is not "reliable"?


More information about the Python-list mailing list