Antoine Pitrou added the comment:
__delete() already acquires _active_limbo_lock so your proposal must be
changed for the following:
with _active_limbo_lock:
self.__stop()
try:
del _active[_get_ident()]
except:
pass
However, with this slight correction it seems to work. I was worrying
whether another thread could hold __block (which is acquired in
__stop()) while waiting for _active_limbo_lock to be released, but
AFAICT there doesn't seem to be a code path where it can happen...
_____________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1703448>
_____________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com