[issue8486] [PATCH] threading.Event()

Antoine Pitrou report at bugs.python.org
Wed Apr 21 15:27:28 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> Yes, I agree when Event objects are used to sync threads. But in my
> case, I'm using them like signals to terminate some server's thread
> through a proper way.

In this case, you don't have to use an Event. A boolean attribute on one
of your objects is enough.
(similarly, you would use a "volatile" variable in C)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8486>
_______________________________________


More information about the Python-bugs-list mailing list