Author schmir
Recipients anacrolix, bquinlan, loewis, pitrou, python-dev, rosslagerwall, schmir
Date 2012-08-20.13:09:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345468206.48.0.257074756083.issue14406@psf.upfronthosting.co.za>
In-reply-to
Content
I think having a lock here is unnecessary. The following code should work:

def _decrement_pending_calls(self):
    if self.num_pending_calls == len(self.finished_futures):
         self.event.set()

(well, maybe the method should also be renamed then)
History
Date User Action Args
2012-08-20 13:10:06schmirsetrecipients: + schmir, loewis, bquinlan, pitrou, anacrolix, rosslagerwall, python-dev
2012-08-20 13:10:06schmirsetmessageid: <1345468206.48.0.257074756083.issue14406@psf.upfronthosting.co.za>
2012-08-20 13:09:45schmirlinkissue14406 messages
2012-08-20 13:09:45schmircreate