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
@@ -31,7 +31,7 @@
|
||||
#define CURL_GLOBAL_HXX
|
||||
|
||||
#include "Multi.hxx"
|
||||
#include "event/TimerEvent.hxx"
|
||||
#include "event/CoarseTimerEvent.hxx"
|
||||
#include "event/DeferEvent.hxx"
|
||||
|
||||
class CurlSocket;
|
||||
@@ -45,7 +45,7 @@ class CurlGlobal final {
|
||||
|
||||
DeferEvent defer_read_info;
|
||||
|
||||
TimerEvent timeout_event;
|
||||
CoarseTimerEvent timeout_event;
|
||||
|
||||
public:
|
||||
explicit CurlGlobal(EventLoop &_loop);
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "Cancellable.hxx"
|
||||
#include "event/SocketEvent.hxx"
|
||||
#include "event/TimerEvent.hxx"
|
||||
#include "event/CoarseTimerEvent.hxx"
|
||||
#include "event/DeferEvent.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
@@ -95,7 +95,7 @@ class NfsConnection {
|
||||
|
||||
SocketEvent socket_event;
|
||||
DeferEvent defer_new_lease;
|
||||
TimerEvent mount_timeout_event;
|
||||
CoarseTimerEvent mount_timeout_event;
|
||||
|
||||
std::string server, export_name;
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user