TriggerHandle is threadsafe without restrictions in a single process. Not qualified for inter process usage. The TriggerHandle is generated by a Notifyable like the WaitSet and handed out to the user when they acquire a trigger. The TriggerHandle corresponds with an internal Trigger and is used to signal an event via the trigger method. When it goes out of scope it cleans up the corresponding trigger in the Notifyable.
More...
#include <iceoryx_posh/popo/trigger_handle.hpp>
TriggerHandle is threadsafe without restrictions in a single process. Not qualified for inter process usage. The TriggerHandle is generated by a Notifyable like the WaitSet and handed out to the user when they acquire a trigger. The TriggerHandle corresponds with an internal Trigger and is used to signal an event via the trigger method. When it goes out of scope it cleans up the corresponding trigger in the Notifyable.
◆ TriggerHandle() [1/2]
iox::popo::TriggerHandle::TriggerHandle |
( |
| ) |
|
|
noexcept |
- Note
- explicitly implemented for MSVC and QNX
◆ TriggerHandle() [2/2]
Creates a TriggerHandle.
- Parameters
-
[in] | conditionVariableDataRef | reference to a condition variable data struct |
[in] | resetCallback | callback which will be called it goes out of scope or reset is called |
[in] | uniqueTriggerId | the unique trigger id of the Trigger which corresponds to the TriggerHandle. Usually stored in a Notifyable. It is required for the resetCallback |
◆ wasTriggered()
bool iox::popo::TriggerHandle::wasTriggered |
( |
| ) |
const |
|
noexcept |
Returns true when the TriggerHandle was triggered.
- Note
- The TriggerHandle wasTriggered state is set to false again after the underlying ConditionListener gathered all events.
The documentation for this class was generated from the following file: