Commit 72ae1f41 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

wip

parent fab46504
Pipeline #39339 failed with stage
in 1 minute and 9 seconds
......@@ -2909,7 +2909,7 @@ using input_port = u64;
inline bool
have_message(const input_port port) noexcept
{
return port != 0u;
return port != static_cast<u64>(-1);
}
struct allocators
......@@ -7248,7 +7248,6 @@ public:
*mdl, [this, port, &msg]<typename Dynamics>(Dynamics& dyn) {
if constexpr (is_detected_v<has_input_port_t, Dynamics>) {
auto list = this->allocs.get_message(dyn.x[port]);
// list.emplace_back(msg[0], msg[1], msg[2]);
list.push_back(msg);
}
});
......@@ -7269,7 +7268,7 @@ public:
if constexpr (is_detected_v<has_input_port_t, Dynamics>) {
for (int i = 0, e = length(dyn.x); i != e; ++i)
allocs.get_message(dyn.x[i]).clear();
dyn.x[i] = static_cast<u64>(-1);
}
if constexpr (is_detected_v<initialize_function_t, Dynamics>)
......@@ -7309,12 +7308,6 @@ public:
if constexpr (is_detected_v<lambda_function_t, Dynamics>) {
if constexpr (is_detected_v<has_output_port_t, Dynamics>) {
irt_return_if_bad(dyn.lambda(allocs));
// No need here, we directly push in send_message function
//
// for (size_t i = 0, e = std::size(dyn.y); i != e; ++i)
// if (have_message(dyn.y[i]))
// emitting_output_ports.emplace_back(&dyn.y[i]);
}
}
}
......
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