Struct TriggerManager::TriggerState
Defined in File trigger_manager.hpp
Nested Relationships
This struct is a nested type of Class TriggerManager.
Struct Documentation
-
struct TriggerState
Per-trigger runtime state.
Threading: most fields require
mtxfor read/write access. Exceptions:info.entity_idandinfo.entity_typeare immutable after creation and safe to read withoutmtx(e.g. in matches_entity()).activeis atomic and can be read/written withoutmtx.
Public Members
-
TriggerInfo info
-
nlohmann::json previous_value
-
bool has_previous_value = {false}
-
std::mutex mtx
-
std::condition_variable cv
-
std::atomic<bool> active = {true}
-
std::deque<nlohmann::json> pending_events
-
std::atomic<uint64_t> event_counter = {0}
Public Static Attributes
-
static constexpr size_t kMaxPendingEvents = 100