MCPcopy Create free account
hub / github.com/NetSys/bess / GetSocketConstraints

Method GetSocketConstraints

core/task.cc:94–101  ·  view source on GitHub ↗

Compute constraints for the pipeline starting at this task.

Source from the content-addressed store, hash-verified

92
93// Compute constraints for the pipeline starting at this task.
94placement_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.
104void Task::AddActiveWorker(int wid) const {

Callers 1

Calls 1

Tested by

no test coverage detected