Fixed race condition (thanks Ralf Schmitt)
This commit is contained in:
parent
1974981202
commit
8c48820921
2
CHANGES
2
CHANGES
|
@ -1,6 +1,8 @@
|
|||
2.1.3
|
||||
=====
|
||||
|
||||
- Fixed race condition in wait(return_when=ALL_COMPLETED)
|
||||
(http://bugs.python.org/issue14406) -- thanks Ralf Schmitt
|
||||
- Added missing setUp() methods to several test classes
|
||||
|
||||
|
||||
|
|
|
@ -122,8 +122,7 @@ class _AllCompletedWaiter(_Waiter):
|
|||
super(_AllCompletedWaiter, self).__init__()
|
||||
|
||||
def _decrement_pending_calls(self):
|
||||
self.num_pending_calls -= 1
|
||||
if not self.num_pending_calls:
|
||||
if self.num_pending_calls == len(self.finished_futures):
|
||||
self.event.set()
|
||||
|
||||
def add_result(self, future):
|
||||
|
|
|
@ -45,9 +45,9 @@ copyright = u'2009-2011, Brian Quinlan'
|
|||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '2.1.2'
|
||||
version = '2.1.3'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '2.1.2'
|
||||
release = '2.1.3'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
|
Loading…
Reference in New Issue