#include <timer.h>
mir::time::Timer::Timer |
( |
| ) |
|
|
default |
virtual mir::time::Timer::~Timer |
( |
| ) |
|
|
virtualdefault |
mir::time::Timer::Timer |
( |
Timer const & |
| ) |
|
|
delete |
virtual std::unique_ptr<Alarm> mir::time::Timer::create_alarm |
( |
std::function< void()> |
callback | ) |
|
|
pure virtual |
Create an Alarm that will not fire until scheduled.
- Parameters
-
callback | Function to call when the Alarm signals |
- Returns
- A handle to an Alarm that can later be scheduled
Implemented in mir::AsioMainLoop.
virtual std::unique_ptr<Alarm> mir::time::Timer::notify_at |
( |
Timestamp |
time_point, |
|
|
std::function< void()> |
callback |
|
) |
| |
|
pure virtual |
Create an Alarm that calls the callback at the specified time.
- Parameters
-
time_point | Time point when the alarm should be triggered |
callback | Function to call when the Alarm signals |
- Returns
- A handle to an Alarm that will fire after delay ms.
Implemented in mir::AsioMainLoop.
virtual std::unique_ptr<Alarm> mir::time::Timer::notify_in |
( |
std::chrono::milliseconds |
delay, |
|
|
std::function< void()> |
callback |
|
) |
| |
|
pure virtual |
Create an Alarm that calls the callback after the specified delay.
- Parameters
-
delay | Time from now, in milliseconds, that the callback will fire |
callback | Function to call when the Alarm signals |
- Returns
- A handle to an Alarm that will fire after delay ms.
Implemented in mir::AsioMainLoop.
Timer& mir::time::Timer::operator= |
( |
Timer const & |
| ) |
|
|
delete |
The documentation for this class was generated from the following file:
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014