Public Member Functions | Private Member Functions | Private Attributes | List of all members
can::StateWaiter Class Reference

#include <threading.h>

Public Member Functions

template<typename InterfaceType >
 StateWaiter (InterfaceType *interface)
 
template<typename DurationType >
bool wait (const can::State::DriverState &s, const DurationType &duration)
 

Private Member Functions

void updateState (const can::State &s)
 

Private Attributes

boost::condition_variable cond_
 
boost::mutex mutex_
 
can::State state_
 
can::StateInterface::StateListenerConstSharedPtr state_listener_
 

Detailed Description

Definition at line 11 of file threading.h.

Constructor & Destructor Documentation

template<typename InterfaceType >
can::StateWaiter::StateWaiter ( InterfaceType *  interface)
inline

Definition at line 23 of file threading.h.

Member Function Documentation

void can::StateWaiter::updateState ( const can::State s)
inlineprivate

Definition at line 16 of file threading.h.

template<typename DurationType >
bool can::StateWaiter::wait ( const can::State::DriverState s,
const DurationType &  duration 
)
inline

Definition at line 27 of file threading.h.

Member Data Documentation

boost::condition_variable can::StateWaiter::cond_
private

Definition at line 13 of file threading.h.

boost::mutex can::StateWaiter::mutex_
private

Definition at line 12 of file threading.h.

can::State can::StateWaiter::state_
private

Definition at line 15 of file threading.h.

can::StateInterface::StateListenerConstSharedPtr can::StateWaiter::state_listener_
private

Definition at line 14 of file threading.h.


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


socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Fri May 14 2021 02:59:39