Staging
v0.5.1
https://github.com/python/cpython
Revision b15bdf7f7a736f49f783ab75904e6b2438449743 authored by Amaury Forgeot d'Arc on 01 July 2008, 20:59:49 UTC, committed by Amaury Forgeot d'Arc on 01 July 2008, 20:59:49 UTC
When a thread touches such an object for the first time, a new thread-local __dict__ is created,
and the __init__ method is run.
But a thread switch can occur here; if the other thread touches the same object, it installs another
__dict__; when the first thread resumes, it updates the dictionary of the second...

This is the deep cause of the failures in test_multiprocessing involving "managers" objects.

Backport of r64601.
1 parent ceda6a6
History
Tip revision: b15bdf7f7a736f49f783ab75904e6b2438449743 authored by Amaury Forgeot d'Arc on 01 July 2008, 20:59:49 UTC
#Issue3088 in-progress: Race condition with instances of classes derived from threading.local:
Tip revision: b15bdf7

README

back to top