Skip to content

Commit f691457

Browse files
authored
Remember to send flushes for unfolded data layers (#183)
1 parent 7c11a93 commit f691457

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

phlex/core/declared_unfold.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ namespace phlex::experimental {
171171
auto child = g.make_child_for(counter++, std::move(new_products));
172172
message const child_msg{child, eom->make_child(child->id()), ++msg_counter_};
173173
output_port<0>(unfold_).try_put(child_msg);
174+
175+
// Every data cell needs a flush (for now)
176+
message const child_flush_msg{child->make_flush(), nullptr, ++msg_counter_};
177+
output_port<0>(unfold_).try_put(child_flush_msg);
174178
}
175179
}
176180

0 commit comments

Comments
 (0)