[issue9260] A finer grained import lock

Antoine Pitrou report at bugs.python.org
Sat May 5 21:21:00 CEST 2012


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

> Now, if x and y are executed in separate threads - won't it deadlock?

Well, the patch has a deadlock avoidance mechanism, and it includes unit
tests for precisely this situation.
I cannot promise the algorithm is perfect (although there *are* a bunch
of tests), but it looks correct from here. :)

----------

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


More information about the Python-bugs-list mailing list