#include <asio_main_loop.h>
mir::AsioMainLoop::AsioMainLoop |
( |
std::shared_ptr< time::Clock > const & |
clock | ) |
|
|
explicit |
mir::AsioMainLoop::~AsioMainLoop |
( |
| ) |
|
|
noexcept |
std::unique_ptr< mir::time::Alarm > mir::AsioMainLoop::create_alarm |
( |
std::function< void()> |
callback | ) |
|
|
overridevirtual |
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
Implements mir::time::Timer.
void mir::AsioMainLoop::enqueue |
( |
void const * |
owner, |
|
|
ServerAction const & |
action |
|
) |
| |
|
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.
Implements mir::time::Timer.
std::unique_ptr< mir::time::Alarm > mir::AsioMainLoop::notify_in |
( |
std::chrono::milliseconds |
delay, |
|
|
std::function< void()> |
callback |
|
) |
| |
|
overridevirtual |
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.
Implements mir::time::Timer.
void mir::AsioMainLoop::pause_processing_for |
( |
void const * |
owner | ) |
|
|
virtual |
void mir::AsioMainLoop::register_fd_handler |
( |
std::initializer_list< int > |
fd, |
|
|
void const * |
owner, |
|
|
std::function< void(int)> const & |
handler |
|
) |
| |
|
overridevirtual |
void mir::AsioMainLoop::register_signal_handler |
( |
std::initializer_list< int > |
signals, |
|
|
std::function< void(int)> const & |
handler |
|
) |
| |
|
virtual |
void mir::AsioMainLoop::resume_processing_for |
( |
void const * |
owner | ) |
|
|
virtual |
void mir::AsioMainLoop::run |
( |
| ) |
|
|
virtual |
void mir::AsioMainLoop::stop |
( |
| ) |
|
|
virtual |
void mir::AsioMainLoop::unregister_fd_handler |
( |
void const * |
owner | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014