hpx::supervision::testing::suspend_heartbeat_for_testing#
Defined in header hpx/supervision_dispatch.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
void hpx::supervision::testing::suspend_heartbeat_for_testing()#
Stops this locality’s own heartbeat_loop() without finalizing the dispatcher, simulating a hard crash (all lifecycle activity ceases, including the periodic event::running pulse) while staying joined in peers’ registries. Idempotent; no-op if init() was never called or the loop is already stopped. Not part of the public dispatch API - exists only so failure-detection tests can deterministically simulate silence instead of relying on the absence of explicit calls, which no longer implies silence now that heartbeats are mirrored onto observers’ local supervision state.