Public Member Functions | Private Attributes | List of all members
realtime_tools::RealtimeBox< T > Class Template Reference

#include <realtime_box.h>

Public Member Functions

void get (T &ref)
 
 RealtimeBox (const T &initial=T())
 
void set (const T &value)
 

Private Attributes

thing_
 
std::mutex thing_lock_RT_
 

Detailed Description

template<class T>
class realtime_tools::RealtimeBox< T >

Strongly suggested that you use an std::shared_ptr in this box to guarantee realtime safety.

Definition at line 47 of file realtime_box.h.

Constructor & Destructor Documentation

◆ RealtimeBox()

template<class T>
realtime_tools::RealtimeBox< T >::RealtimeBox ( const T &  initial = T())
inline

Definition at line 50 of file realtime_box.h.

Member Function Documentation

◆ get()

template<class T>
void realtime_tools::RealtimeBox< T >::get ( T &  ref)
inline

Definition at line 60 of file realtime_box.h.

◆ set()

template<class T>
void realtime_tools::RealtimeBox< T >::set ( const T &  value)
inline

Definition at line 54 of file realtime_box.h.

Member Data Documentation

◆ thing_

template<class T>
T realtime_tools::RealtimeBox< T >::thing_
private

Definition at line 68 of file realtime_box.h.

◆ thing_lock_RT_

template<class T>
std::mutex realtime_tools::RealtimeBox< T >::thing_lock_RT_
private

Definition at line 75 of file realtime_box.h.


The documentation for this class was generated from the following file:


realtime_tools
Author(s): Stuart Glaser
autogenerated on Mon Feb 28 2022 23:22:45