Message168657
| 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) |
|