| 216 | } |
| 217 | |
| 218 | bool TaskSchedulerImpl::PostExecuteTask(size_t thread_id, int group_id) { |
| 219 | int64_t total = task_groups_[group_id].num_tasks_present_; |
| 220 | int64_t prev_finished = task_groups_[group_id].num_tasks_finished_.value.fetch_add(1); |
| 221 | bool all_tasks_finished = (prev_finished + 1 == total); |
| 222 | return all_tasks_finished; |
| 223 | } |
| 224 | |
| 225 | Status TaskSchedulerImpl::OnTaskGroupFinished(size_t thread_id, int group_id, |
| 226 | bool* all_task_groups_finished) { |
nothing calls this directly
no outgoing calls
no test coverage detected