Public Member Functions | Public Attributes | List of all members
youbot::DataObjectLockFree< T >::DataBuf Struct Reference

Public Member Functions

 DataBuf ()
 

Public Attributes

oro_atomic_t counter
 
DataType data
 
DataBufnext
 

Detailed Description

template<class T>
struct youbot::DataObjectLockFree< T >::DataBuf

Internal buffer structure. Both the read and write pointers pointing to this struct must be declared volatile, since they are modified in other threads. I did not declare data as volatile, since we only read/write it in secured buffers.

Definition at line 100 of file DataObjectLockFree.hpp.

Constructor & Destructor Documentation

template<class T>
youbot::DataObjectLockFree< T >::DataBuf::DataBuf ( )
inline

Definition at line 101 of file DataObjectLockFree.hpp.

Member Data Documentation

template<class T>
oro_atomic_t youbot::DataObjectLockFree< T >::DataBuf::counter
mutable

Definition at line 106 of file DataObjectLockFree.hpp.

template<class T>
DataType youbot::DataObjectLockFree< T >::DataBuf::data

Definition at line 106 of file DataObjectLockFree.hpp.

template<class T>
DataBuf* youbot::DataObjectLockFree< T >::DataBuf::next

Definition at line 106 of file DataObjectLockFree.hpp.


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


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Jun 10 2019 15:46:27