DUDS
Distributed Update of Data from Something
duds::hardware::devices::GenericDevice< SVT, SQT, TVT, TQT >::DestructCounter Class Reference

Used to assure the destructor function does not return before Sensor objects quit using member functions on this object on other threads. More...

Public Member Functions

 DestructCounter (std::atomic< unsigned int > &c)
 
 ~DestructCounter ()
 

Private Attributes

std::atomic< unsigned int > & count
 

Detailed Description

template<class SVT, class SQT, class TVT, class TQT>
class duds::hardware::devices::GenericDevice< SVT, SQT, TVT, TQT >::DestructCounter

Used to assure the destructor function does not return before Sensor objects quit using member functions on this object on other threads.

Todo:
Would this be useful in a generic form outside this class?

Definition at line 45 of file Device.hpp.

Constructor & Destructor Documentation

◆ DestructCounter()

template<class SVT , class SQT , class TVT , class TQT >
duds::hardware::devices::GenericDevice< SVT, SQT, TVT, TQT >::DestructCounter::DestructCounter ( std::atomic< unsigned int > &  c)
inline

Definition at line 48 of file Device.hpp.

◆ ~DestructCounter()

template<class SVT , class SQT , class TVT , class TQT >
duds::hardware::devices::GenericDevice< SVT, SQT, TVT, TQT >::DestructCounter::~DestructCounter ( )
inline

Definition at line 51 of file Device.hpp.

Member Data Documentation

◆ count

template<class SVT , class SQT , class TVT , class TQT >
std::atomic<unsigned int>& duds::hardware::devices::GenericDevice< SVT, SQT, TVT, TQT >::DestructCounter::count
private

Definition at line 46 of file Device.hpp.


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