| 570 | // ExecNodeTask |
| 571 | |
| 572 | tasking::SharedTask ExecNodeTask::CreateTask(ExecNode *node, const WorkspaceParams ¶ms) { |
| 573 | if (node->is_pipeline_output) { |
| 574 | return tasking::Task::Create( |
| 575 | OutputTask(node, params).GetRunnable()); |
| 576 | } else { |
| 577 | int nout = node->outputs.size(); |
| 578 | // the size of outputs is limited by the compile-time operator schema |
| 579 | // that uses int to represent the number of outputs |
| 580 | assert(nout >= 0 && static_cast<size_t>(nout) == node->outputs.size()); |
| 581 | return tasking::Task::Create( |
| 582 | nout, |
| 583 | OpTask(node, params).GetRunnable()); |
| 584 | } |
| 585 | } |
| 586 | |
| 587 | void ClearWorkspacePayload(Workspace &ws, ExecNode &node) { |
| 588 | DomainTimeRange r("[Exec] ClearWokspacePayload", RangeBase::kMagenta); |
nothing calls this directly
no test coverage detected