From c0424e7a55250705579ee64c269892677fa86adf Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 15 Mar 2024 14:41:47 +0100 Subject: async,io: Fixed immediate issues in async and built a basic io echo_server --- modules/async/c++/async.tmpl.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'modules/async/c++/async.tmpl.hpp') diff --git a/modules/async/c++/async.tmpl.hpp b/modules/async/c++/async.tmpl.hpp index 98573b5..ec8d3fc 100644 --- a/modules/async/c++/async.tmpl.hpp +++ b/modules/async/c++/async.tmpl.hpp @@ -285,7 +285,7 @@ template size_t immediate_conveyor_node::space() const { } template size_t immediate_conveyor_node::queued() const { - return retrieved_ > 1 ? 0 : 1; + return retrieved_ > 0 ? 0 : 1; } template void immediate_conveyor_node::child_has_fired() { @@ -301,15 +301,10 @@ template void immediate_conveyor_node::parent_has_fired() { arm_next(); } } -} -#include -namespace saw { + template void immediate_conveyor_node::fire() { - std::cout<<"Immediate fire"<space()<child_has_fired(); - std::cout<<"Immediate parent2: "<space()< 0 && parent_->space() > 0) { arm_last(); } -- cgit v1.2.3