Message168657
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) |
|
Date |
User |
Action |
Args |
2012-08-20 13:10:06 | schmir | set | recipients:
+ schmir, loewis, bquinlan, pitrou, anacrolix, rosslagerwall, python-dev |
2012-08-20 13:10:06 | schmir | set | messageid: <1345468206.48.0.257074756083.issue14406@psf.upfronthosting.co.za> |
2012-08-20 13:09:45 | schmir | link | issue14406 messages |
2012-08-20 13:09:45 | schmir | create | |
|