From 45b45108f2e8adfe70d156f7d535c82cfe42021a Mon Sep 17 00:00:00 2001 From: Balazs Racz Date: Wed, 8 Jun 2022 23:00:32 +0200 Subject: [PATCH] Allows calling invoke_subflow_and_ignore_result outside of stateflows. (#626) This is essentially just a helper function, and it is stateless. --- src/executor/StateFlow.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/executor/StateFlow.hxx b/src/executor/StateFlow.hxx index 57be225a5..ffefd6e4f 100644 --- a/src/executor/StateFlow.hxx +++ b/src/executor/StateFlow.hxx @@ -529,6 +529,7 @@ protected: return wait_and_call(c); } +public: /** Calls a helper flow to perform some actions. Performs inline * synchronous allocation form the main buffer pool. Ignores the target * flow's buffer pool settings, because that makes it impossible to @@ -543,7 +544,7 @@ protected: * buffer type. */ template - void invoke_subflow_and_ignore_result( + static void invoke_subflow_and_ignore_result( FlowInterface> *target_flow, Args &&... args) { Buffer *b; @@ -552,7 +553,8 @@ protected: b->data()->done.reset(EmptyNotifiable::DefaultInstance()); target_flow->send(b); } - + +protected: struct StateFlowSelectHelper; struct StateFlowTimedSelectHelper;