| 54 | } |
| 55 | |
| 56 | void Event::FinishTask() { |
| 57 | D_ASSERT(finished_tasks.load() < total_tasks.load()); |
| 58 | idx_t current_tasks = total_tasks; |
| 59 | idx_t current_finished = ++finished_tasks; |
| 60 | D_ASSERT(current_finished <= current_tasks); |
| 61 | if (current_finished == current_tasks) { |
| 62 | Finish(); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | ClientContext &Event::GetClientContext() { |
| 67 | return executor.context; |
no outgoing calls