| 207 | } |
| 208 | |
| 209 | Status TaskSchedulerImpl::ExecuteTask(size_t thread_id, int group_id, int64_t task_id, |
| 210 | bool* task_group_finished) { |
| 211 | if (!aborted_.value.load()) { |
| 212 | RETURN_NOT_OK(task_groups_[group_id].task_impl_(thread_id, task_id)); |
| 213 | } |
| 214 | *task_group_finished = PostExecuteTask(thread_id, group_id); |
| 215 | return Status::OK(); |
| 216 | } |
| 217 | |
| 218 | bool TaskSchedulerImpl::PostExecuteTask(size_t thread_id, int group_id) { |
| 219 | int64_t total = task_groups_[group_id].num_tasks_present_; |