A condition object which can be used to wait on messages from the stream.
More...
#include <message.hh>
|
| MessageCondition ()=default |
|
void | set_and_notify (std::shared_ptr< std::vector< uint8_t >> data) |
|
void | unset () |
|
template<typename T > |
std::optional< T > | wait () |
|
template<typename T , class Rep , class Period > |
std::optional< T > | wait (const std::optional< std::chrono::duration< Rep, Period >> &timeout) |
| convenience function equivalent to std::condition_variable::wait_for that performs a type conversion to the target type More...
|
|
| ~MessageCondition () |
|
A condition object which can be used to wait on messages from the stream.
Definition at line 137 of file message.hh.
◆ MessageCondition()
multisense::legacy::MessageCondition::MessageCondition |
( |
| ) |
|
|
default |
◆ ~MessageCondition()
multisense::legacy::MessageCondition::~MessageCondition |
( |
| ) |
|
|
inline |
◆ set_and_notify()
void multisense::legacy::MessageCondition::set_and_notify |
( |
std::shared_ptr< std::vector< uint8_t >> |
data | ) |
|
|
inline |
◆ unset()
void multisense::legacy::MessageCondition::unset |
( |
| ) |
|
|
inline |
◆ wait() [1/2]
template<typename T >
std::optional<T> multisense::legacy::MessageCondition::wait |
( |
| ) |
|
|
inline |
◆ wait() [2/2]
template<typename T , class Rep , class Period >
std::optional<T> multisense::legacy::MessageCondition::wait |
( |
const std::optional< std::chrono::duration< Rep, Period >> & |
timeout | ) |
|
|
inline |
convenience function equivalent to std::condition_variable::wait_for that performs a type conversion to the target type
Definition at line 167 of file message.hh.
◆ m_cv
std::condition_variable multisense::legacy::MessageCondition::m_cv |
|
private |
◆ m_data
std::vector<uint8_t> multisense::legacy::MessageCondition::m_data |
|
private |
◆ m_mutex
std::mutex multisense::legacy::MessageCondition::m_mutex |
|
private |
◆ m_notified
bool multisense::legacy::MessageCondition::m_notified = false |
|
private |
The documentation for this class was generated from the following file: