ConditionListener allows one to wait using a shared memory condition variable.
More...
#include <condition_listener.hpp>
|
using | NotificationVector_t = cxx::vector< cxx::BestFittingType_t< MAX_NUMBER_OF_NOTIFIERS_PER_CONDITION_VARIABLE >, MAX_NUMBER_OF_NOTIFIERS_PER_CONDITION_VARIABLE > |
|
ConditionListener allows one to wait using a shared memory condition variable.
◆ timedWait()
NotificationVector_t iox::popo::ConditionListener::timedWait |
( |
const units::Duration & |
timeToWait | ) |
|
|
noexcept |
returns a sorted vector of indices of active notifications; blocking for the specified time if ConditionVariableData was not notified unless destroy() was called before. The indices of active notifications can be empty (spurious wakeups). When destroy() was called then it is always empty.
- Parameters
-
[in] | timeToWait | duration how long at most this method should wait |
- Returns
- a sorted vector of active notifications
◆ wait()
NotificationVector_t iox::popo::ConditionListener::wait |
( |
| ) |
|
|
noexcept |
returns a sorted vector of indices of active notifications; blocking if ConditionVariableData was not notified unless destroy() was called before. The indices of active notifications are never empty unless destroy() was called, then it's always empty.
- Returns
- a sorted vector of active notifications
◆ wasNotified()
bool iox::popo::ConditionListener::wasNotified |
( |
| ) |
const |
|
noexcept |
The documentation for this class was generated from the following file: