10namespace rotor_light {
13enum class State { off, initializing, initialized, operational, shutting_down };
17enum class StateCommand { init, start, shutdown };
27enum class FailPolicy {
29 force_restart = 0b00000011,
30 escalate = 0b00000100,
31 force_escalate = 0b00001100,
36using MessageTypeId = ROTOR_LIGHT_MESSAGE;
37using Index = ROTOR_LIGHT_INDEX;
38using ActorId = ROTOR_LIGHT_ACTOR;
39using EventId = ROTOR_LIGHT_EVENT;
41static constexpr size_t default_queue = ROTOR_LIGHT_FW_QUEUE;
43static constexpr auto broadcast = std::numeric_limits<ActorId>::max();
45using TimePoint = ROTOR_LIGHT_TIMEPOINT;
46using Duration = ROTOR_LIGHT_DURATION;
47using NowFunction = TimePoint (*)();
48using Callback = void (*)(
void *);
Definition: definitions.hpp:52
Definition: definitions.hpp:51