Message 160026 - Python tracker (original) (raw)
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. :)