YOrch 1.0.0
Loading...
Searching...
No Matches
yorch::fanout_consume_with_copies_policy Struct Reference

Mixed fanout policy that allows one consumer plus any number of copies. More...

#include <policies.hpp>

Detailed Description

Mixed fanout policy that allows one consumer plus any number of copies.

A node marked with this policy may have direct children that use prev access only under the following rules:

  • at most one direct child may use consume_prev;
  • every other direct child that uses prev access must use copy_prev;
  • borrow_prev and borrow_prev_mut are not allowed.

At runtime the executor stages the fanout before children begin execution: copy payloads are materialized first for copy_prev children, and the original upstream payload is then reserved for the single consume_prev child. This keeps the semantics independent of sibling execution order.

Definition at line 46 of file policies.hpp.


The documentation for this struct was generated from the following file: