ReduxLib C++ 2024.3.2
|
#include <Frame.h>
Public Member Functions | |
FrameListener (std::condition_variable &cv, std::mutex &dataLock) | |
void | UpdateValue (T value, units::second_t timestamp) |
Public Attributes | |
std::condition_variable & | cv |
std::mutex & | dataLock |
std::optional< FrameData< T > > | data {std::nullopt} |
Internal class.
|
inline |
Instantiates a FrameListener, used internally for WaitForFrames
cv | the condition variable to flag when data is received |
dataLock | the associated data lock for the frame listener |
|
inline |
updates the framelistener with the value/timestamp pair, notifying its associated condition variable
value | value to update with |
timestamp | timestamp to update with |
std::condition_variable& redux::frames::FrameListener< T >::cv |
condition variable reference
std::optional<FrameData<T> > redux::frames::FrameListener< T >::data {std::nullopt} |
payload to hold received data – check if nullopt for populated-ness
std::mutex& redux::frames::FrameListener< T >::dataLock |
data lock reference