From d3a479b7fa1d1e52f9d3950139643fe7e3ff5a57 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Jan 2013 19:08:42 +0100 Subject: event/TimeoutMonitor: wrapper for g_timeout_source_new() --- src/InotifyQueue.hxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/InotifyQueue.hxx') diff --git a/src/InotifyQueue.hxx b/src/InotifyQueue.hxx index a30cdf094..761df574a 100644 --- a/src/InotifyQueue.hxx +++ b/src/InotifyQueue.hxx @@ -20,23 +20,22 @@ #ifndef MPD_INOTIFY_QUEUE_HXX #define MPD_INOTIFY_QUEUE_HXX -#include +#include "event/TimeoutMonitor.hxx" +#include "gcc.h" #include #include -class InotifyQueue { +class InotifyQueue final : private TimeoutMonitor { std::list queue; - guint source_id; public: - ~InotifyQueue(); + InotifyQueue(EventLoop &_loop):TimeoutMonitor(_loop) {} void Enqueue(const char *uri_utf8); private: - bool Run(); - static gboolean Run(gpointer ctx); + virtual bool OnTimeout() override; }; #endif -- cgit v1.2.3