hpx::supervision::is_valid_transition#
Defined in header hpx/supervision.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
bool hpx::supervision::is_valid_transition(event from, event to) noexcept#
Determine whether transitioning from lifecycle event from to lifecycle event to is permitted by the supervision lifecycle state machine.
event::completed and event::failed are terminal states and have no outgoing transitions. event::losing_locality is only reachable from event::started, event::running, or event::suspending, and may only transition to failed. A missing prior event is represented as event::unknown, from which the only valid transition is to event::started.