If there is the possibility that the same thread had acquired the lock
earlier, you should use an RLock instead.

Gabriel,
Thanks for the great hint. I didn't find RLock in my initial reading.
So as I read up on RLock, I did a quick search on vlock.

It turns out that I was using vlock as a variable and it is also a
lock that wasn't in my initial reading. So I changed the variable name
and the threads started working properly.
Thanks!
Teresa
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to