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 9 of file threading.h.

Constructor & Destructor Documentation

◆ StateWaiter()

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

Definition at line 21 of file threading.h.

Member Function Documentation

◆ updateState()

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

Definition at line 14 of file threading.h.

◆ wait()

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

Definition at line 25 of file threading.h.

Member Data Documentation

◆ cond_

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

Definition at line 11 of file threading.h.

◆ mutex_

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

Definition at line 10 of file threading.h.

◆ state_

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

Definition at line 13 of file threading.h.

◆ state_listener_

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

Definition at line 12 of file threading.h.


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


socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Wed Mar 2 2022 00:52:25