#include <timer.h>
Public Types | |
| typedef fastdelegate::FastDelegate0 < bool > | TimerDelegate |
Public Member Functions | |
| const boost::chrono::high_resolution_clock::duration & | getPeriod () |
| void | restart () |
| template<typename T > | |
| void | start (const TimerDelegate &del, const T &dur, bool start_now=true) |
| void | stop () |
| Timer () | |
| ~Timer () | |
Private Member Functions | |
| void | handler (const boost::system::error_code &ec) |
Private Attributes | |
| TimerDelegate | delegate |
| boost::asio::io_service | io |
| boost::mutex | mutex |
| boost::chrono::high_resolution_clock::duration | period |
| boost::thread | thread |
| boost::asio::basic_waitable_timer < boost::chrono::high_resolution_clock > | timer |
| boost::asio::io_service::work | work |
| typedef fastdelegate::FastDelegate0<bool> canopen::Timer::TimerDelegate |
| canopen::Timer::Timer | ( | ) | [inline] |
| canopen::Timer::~Timer | ( | ) | [inline] |
| const boost::chrono::high_resolution_clock::duration& canopen::Timer::getPeriod | ( | ) | [inline] |
| void canopen::Timer::handler | ( | const boost::system::error_code & | ec | ) | [inline, private] |
| void canopen::Timer::restart | ( | ) | [inline] |
| void canopen::Timer::start | ( | const TimerDelegate & | del, |
| const T & | dur, | ||
| bool | start_now = true |
||
| ) | [inline] |
| void canopen::Timer::stop | ( | ) | [inline] |
TimerDelegate canopen::Timer::delegate [private] |
boost::asio::io_service canopen::Timer::io [private] |
boost::mutex canopen::Timer::mutex [private] |
boost::chrono::high_resolution_clock::duration canopen::Timer::period [private] |
boost::thread canopen::Timer::thread [private] |
boost::asio::basic_waitable_timer<boost::chrono::high_resolution_clock> canopen::Timer::timer [private] |
boost::asio::io_service::work canopen::Timer::work [private] |