17#ifndef IOX_POSH_POPO_TRIGGER_HANDLE_HPP
18#define IOX_POSH_POPO_TRIGGER_HANDLE_HPP
20#include "iceoryx_hoofs/cxx/method_callback.hpp"
21#include "iceoryx_posh/internal/popo/building_blocks/condition_variable_data.hpp"
22#include "iceoryx_posh/popo/trigger.hpp"
49 const cxx::MethodCallback<
void, uint64_t> resetCallback,
50 const uint64_t uniqueTriggerId) noexcept;
60 explicit operator
bool() const noexcept;
88 ConditionVariableData* m_conditionVariableDataPtr =
nullptr;
89 cxx::MethodCallback<
void, uint64_t> m_resetCallback;
90 uint64_t m_uniqueTriggerId =
Trigger::INVALID_TRIGGER_ID;
91 mutable std::recursive_mutex m_mutex;
TriggerHandle is threadsafe without restrictions in a single process. Not qualified for inter process...
Definition: trigger_handle.hpp:38
void invalidate() noexcept
invalidates the TriggerHandle without calling the reset callback
void reset() noexcept
calls the resetCallback and invalidates the TriggerHandle
uint64_t getUniqueId() const noexcept
returns the uniqueTriggerId
ConditionVariableData * getConditionVariableData() noexcept
returns the pointer to the ConditionVariableData
bool isValid() const noexcept
returns true if the TriggerHandle is valid otherwise false. A TriggerHandle is valid if m_conditionVa...
bool wasTriggered() const noexcept
Returns true when the TriggerHandle was triggered.
void trigger() noexcept
triggers the Trigger and informs the Notifyable which verifies that the Trigger was triggered by call...
The Trigger class is usually managed by a factory class like a WaitSet and acquired by classes which ...
Definition: trigger.hpp:56