]> granicus.if.org Git - python/commit
Merged revisions 87710 via svnmerge from
authorGregory P. Smith <greg@mad-scientist.com>
Tue, 4 Jan 2011 01:10:08 +0000 (01:10 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Tue, 4 Jan 2011 01:10:08 +0000 (01:10 +0000)
commit2b79a8146155579bf2ea8acdd4237bc58554dbb8
tree6e7ee72048556294db3d57d0006d58a8ff338c6c
parent7247d67e87b0f0c50f1bcf0a134a82373606f40c
Merged revisions 87710 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87710 | gregory.p.smith | 2011-01-03 13:06:12 -0800 (Mon, 03 Jan 2011) | 4 lines

  issue6643 - Two locks held within the threading module on each thread instance
  needed to be reinitialized after fork().  Adds tests to confirm that they are
  and that a potential deadlock and crasher bug are fixed (platform dependant).
........

This required a bit more fiddling for 2.x as __block and __started are __
private as well as the __started Event's __cond.  A new "private"
_reset_internal_locks() method is added to Thread and _Event objects to
address this.
Lib/test/test_threading.py
Lib/threading.py