Antoine Pitrou added the comment:

(Actually, it would almost be possible to combine weakrefs and thread locals to 
ensure that join() only returns when the thread state is cleared. However, the 
thread state is cleared before it is untied from the interpreter, and there 
would still be a small window for a race condition if some destructor called by 
clearing the thread state released the GIL.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18808>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to