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)

Definition at line 21 of file threading.h.

Member Function Documentation

◆ updateState()

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

Definition at line 14 of file threading.h.

◆ wait()

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

Definition at line 25 of file threading.h.

Member Data Documentation

◆ cond_

boost::condition_variable can::StateWaiter::cond_

Definition at line 11 of file threading.h.

◆ mutex_

boost::mutex can::StateWaiter::mutex_

Definition at line 10 of file threading.h.

◆ state_

can::State can::StateWaiter::state_

Definition at line 13 of file threading.h.

◆ state_listener_

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

Definition at line 12 of file threading.h.

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

Author(s): Mathias L├╝dtke
autogenerated on Tue May 4 2021 02:50:18