Skip to content

Commit

Permalink
Allows calling invoke_subflow_and_ignore_result outside of stateflows. (
Browse files Browse the repository at this point in the history
#626)

This is essentially just a helper function, and it is stateless.
  • Loading branch information
balazsracz authored Jun 8, 2022
1 parent 2a018c8 commit 45b4510
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/executor/StateFlow.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -543,7 +544,7 @@ protected:
* buffer type.
*/
template <class T, typename... Args>
void invoke_subflow_and_ignore_result(
static void invoke_subflow_and_ignore_result(
FlowInterface<Buffer<T>> *target_flow, Args &&... args)
{
Buffer<T> *b;
Expand All @@ -552,7 +553,8 @@ protected:
b->data()->done.reset(EmptyNotifiable::DefaultInstance());
target_flow->send(b);
}


protected:
struct StateFlowSelectHelper;
struct StateFlowTimedSelectHelper;

Expand Down

0 comments on commit 45b4510

Please sign in to comment.