|
ifw
0.0.1-dev
|
#include <Timer.hpp>
Public Member Functions | |
| Timer (boost::asio::io_service &ios, Dispatcher &dispatcher, UniqueEvent &&event) | |
| virtual | ~Timer () |
| void | Install (const long timeout) |
| void | Cancel () |
| Timer (const Timer &)=delete | |
| Timer & | operator= (const Timer &)=delete |
| Timer (boost::asio::io_service &ios, Dispatcher &dispatcher, UniqueEvent &&event) | |
| virtual | ~Timer () |
| void | Install (const long timeout) |
| void | Cancel () |
| Timer (const Timer &)=delete | |
| Timer & | operator= (const Timer &)=delete |
| Timer (boost::asio::io_service &ios, Dispatcher &dispatcher, UniqueEvent &&event) | |
| virtual | ~Timer () |
| void | Install (const long timeout) |
| void | Cancel () |
| Timer (const Timer &)=delete | |
| Timer & | operator= (const Timer &)=delete |
This class can be used to trigger an event when a timer expires.
| rad::Timer::Timer | ( | boost::asio::io_service & | ios, |
| Dispatcher & | dispatcher, | ||
| UniqueEvent && | event | ||
| ) |
| [in] | ios | Event loop used by the application. |
| [in] | dispatcher | Dispatcher of the event associated to the timeout. |
| [in] | event | Event to be triggered when the timer expires. |
|
virtual |
Cancel the timer if it is active.
| rad::Timer::Timer | ( | boost::asio::io_service & | ios, |
| Dispatcher & | dispatcher, | ||
| UniqueEvent && | event | ||
| ) |
|
virtual |
| rad::Timer::Timer | ( | boost::asio::io_service & | ios, |
| Dispatcher & | dispatcher, | ||
| UniqueEvent && | event | ||
| ) |
|
virtual |
| void rad::Timer::Cancel | ( | void | ) |
Cancel an installed deadline timer.
| void rad::Timer::Cancel | ( | ) |
| void rad::Timer::Cancel | ( | ) |
| void rad::Timer::Install | ( | const long | timeout | ) |
| void rad::Timer::Install | ( | const long | timeout | ) |
Install a deadline timer that expires after the given time.
| [in] | timeout | Deadline time in msec. from now. |
| void rad::Timer::Install | ( | const long | timeout | ) |
1.8.5