is this thread safe?

Joe Wong joewong at mango.cc
Tue Aug 24 06:07:57 EDT 2004


Hi, 

I have a variable that need to be incremented by 1 as follow:

v += 1

Is this threadsafe? Do I need to put a lock around this?

Best regards,

- Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040824/60065772/attachment.html>


More information about the Python-list mailing list