Skip to content
Snippets Groups Projects
Commit 2d383e19 authored by Christoph Kampmeyer's avatar Christoph Kampmeyer
Browse files

wip: Refactor makeTypedConnections - minor changes for ConsumingFanOut

parent b2964433
No related branches found
No related tags found
No related merge requests found
......@@ -881,16 +881,17 @@ void Application::typedMakeConnection(VariableNetwork& network) {
consumingFanOut = boost::make_shared<ConsumingFanOut<UserType>>(feedingImpl, consumerImplementationPairs);
fanOut = consumingFanOut;
// TODO Is this correct, we already added all consumer as slaves in the fanout constructor
// TODO Is this correct? we already added all consumer as slaves in the fanout constructor.
// Maybe assert that we only have a single poll-type node (is there a check in checkConnections?)
for(auto consumer : consumers) {
if(consumer.getMode() == UpdateMode::poll) {
consumer.setAppAccessorImplementation<UserType>(consumingFanOut);
consumingFanOut.reset();
//consumingFanOut.reset();
break;
}
}
}
// FIXME Remove
// addConsumersToFanout<UserType>(fanOut, feeder, consumers, consumingFanOut);
connectionMade = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment