Class UserTrigger
Defined in File user_trigger.hpp
Class Documentation
-
class UserTrigger
An event based trigger which can be used by the application developer directly. If you would like to trigger a WaitSet/Listener through an event of your class you should use the Trigger class.
Public Functions
-
UserTrigger() noexcept
-
UserTrigger(const UserTrigger &rhs) = delete
-
UserTrigger(UserTrigger &&rhs) = delete
-
UserTrigger &operator=(const UserTrigger &rhs) = delete
-
UserTrigger &operator=(UserTrigger &&rhs) = delete
-
void trigger() noexcept
If it is attached it will trigger otherwise it will do nothing.
Note
a user trigger cannot be triggered when it is not attached
-
bool hasTriggered() const noexcept
Checks if the UserTrigger was triggered.
Note
The hasTrigger state will be reset after it was handled by a WaitSet/Listener
- Returns:
true if the UserTrigger is trigger, otherwise false.
Friends
- friend class NotificationAttorney
-
UserTrigger() noexcept