event/{Coarse,Fine,Far}TimerEvent: aliases for TimerEvent

Preparing for a variant of TimerEvent with coarse 1-second
granularity, but cheaper (with a timer wheel).
This commit is contained in:
Max Kellermann
2021-02-04 20:45:43 +01:00
committed by Max Kellermann
parent e802f1f61a
commit def962b6cb
14 changed files with 170 additions and 20 deletions

View File

@@ -30,7 +30,7 @@
#ifndef SYSTEMD_WATCHDOG_HXX
#define SYSTEMD_WATCHDOG_HXX
#include "event/TimerEvent.hxx"
#include "event/FineTimerEvent.hxx"
namespace Systemd {
@@ -40,7 +40,7 @@ namespace Systemd {
* not enabled, this class does nothing.
*/
class Watchdog {
TimerEvent timer;
FineTimerEvent timer;
Event::Duration interval;