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:
committed by
Max Kellermann
parent
e802f1f61a
commit
def962b6cb
@@ -20,7 +20,7 @@
|
||||
#ifndef MPD_INOTIFY_QUEUE_HXX
|
||||
#define MPD_INOTIFY_QUEUE_HXX
|
||||
|
||||
#include "event/TimerEvent.hxx"
|
||||
#include "event/CoarseTimerEvent.hxx"
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
@@ -32,7 +32,7 @@ class InotifyQueue final {
|
||||
|
||||
std::list<std::string> queue;
|
||||
|
||||
TimerEvent delay_event;
|
||||
CoarseTimerEvent delay_event;
|
||||
|
||||
public:
|
||||
InotifyQueue(EventLoop &_loop, UpdateService &_update) noexcept
|
||||
|
||||
Reference in New Issue
Block a user