#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::StateListener::Ptr | state_listener_ |
Definition at line 11 of file threading.h.
can::StateWaiter::StateWaiter | ( | InterfaceType * | interface | ) | [inline] |
Definition at line 23 of file threading.h.
void can::StateWaiter::updateState | ( | const can::State & | s | ) | [inline, private] |
Definition at line 16 of file threading.h.
bool can::StateWaiter::wait | ( | const can::State::DriverState & | s, |
const DurationType & | duration | ||
) | [inline] |
Definition at line 27 of file threading.h.
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.
Definition at line 14 of file threading.h.