Commit 972d212c authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

core: improve dispatch message algorithm

parent ee0a470f
Pipeline #17774 passed with stage
in 1 minute and 8 seconds
......@@ -6467,10 +6467,10 @@ public:
for (const output_port_id src : emitting_output_ports) {
if (auto* port_src = output_ports.try_to_get(src); port_src) {
for (const message& msg : port_src->messages) {
for (const input_port_id dst : port_src->connections) {
if (auto* port_dst = input_ports.try_to_get(dst);
port_dst) {
for (const input_port_id dst : port_src->connections) {
if (auto* port_dst = input_ports.try_to_get(dst);
port_dst) {
for (const message& msg : port_src->messages) {
port_dst->messages.emplace_front(msg);
if (auto* mdl = models.try_to_get(port_dst->model);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment