| 1310 | } |
| 1311 | |
| 1312 | bool IsCompleteUnlocked(const util::Mutex::Guard& guard) { |
| 1313 | return outstanding_requests == 0 && |
| 1314 | (broken || (source_exhausted && num_running_subscriptions == 0 && |
| 1315 | delivered_jobs.empty())); |
| 1316 | } |
| 1317 | |
| 1318 | bool MarkTaskFinishedUnlocked(const util::Mutex::Guard& guard) { |
| 1319 | --outstanding_requests; |