Compute constraints for the pipeline starting at this task.
| 92 | |
| 93 | // Compute constraints for the pipeline starting at this task. |
| 94 | placement_constraint Task::GetSocketConstraints() const { |
| 95 | if (module_) { |
| 96 | std::unordered_set<const Module *> visited; |
| 97 | return module_->ComputePlacementConstraints(&visited); |
| 98 | } else { |
| 99 | return UNCONSTRAINED_SOCKET; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | // Add a worker to the set of workers that call this task. |
| 104 | void Task::AddActiveWorker(int wid) const { |
no test coverage detected