aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/TimeoutMonitor.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-04 19:31:23 +0100
committerMax Kellermann <max@duempel.org>2014-01-04 19:31:23 +0100
commitf0d3b47ad819eadf04569d6886b7aa7d06154511 (patch)
tree6276888d083341499782c80d4aeab84016c1f91d /src/event/TimeoutMonitor.hxx
parentbfe75335465711faae3181c5224119b23cc9d2e0 (diff)
downloadmpd-f0d3b47ad819eadf04569d6886b7aa7d06154511.tar.gz
mpd-f0d3b47ad819eadf04569d6886b7aa7d06154511.tar.xz
mpd-f0d3b47ad819eadf04569d6886b7aa7d06154511.zip
event/Loop: remove the GLib implementation
Now that the remaining known bugs in poll() implementation are fixed, we can go on without the GLib implementation.
Diffstat (limited to 'src/event/TimeoutMonitor.hxx')
-rw-r--r--src/event/TimeoutMonitor.hxx29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/event/TimeoutMonitor.hxx b/src/event/TimeoutMonitor.hxx
index 9f6b19bc7..0e3f4bdb7 100644
--- a/src/event/TimeoutMonitor.hxx
+++ b/src/event/TimeoutMonitor.hxx
@@ -22,10 +22,6 @@
#include "check.h"
-#ifdef USE_GLIB_EVENTLOOP
-#include <glib.h>
-#endif
-
class EventLoop;
/**
@@ -37,31 +33,16 @@ class EventLoop;
* as thread-safe.
*/
class TimeoutMonitor {
-#ifdef USE_INTERNAL_EVENTLOOP
friend class EventLoop;
-#endif
EventLoop &loop;
-#ifdef USE_INTERNAL_EVENTLOOP
bool active;
-#endif
-
-#ifdef USE_GLIB_EVENTLOOP
- GSource *source;
-#endif
public:
-#ifdef USE_INTERNAL_EVENTLOOP
TimeoutMonitor(EventLoop &_loop)
:loop(_loop), active(false) {
}
-#endif
-
-#ifdef USE_GLIB_EVENTLOOP
- TimeoutMonitor(EventLoop &_loop)
- :loop(_loop), source(nullptr) {}
-#endif
~TimeoutMonitor() {
Cancel();
@@ -72,13 +53,7 @@ public:
}
bool IsActive() const {
-#ifdef USE_INTERNAL_EVENTLOOP
return active;
-#endif
-
-#ifdef USE_GLIB_EVENTLOOP
- return source != nullptr;
-#endif
}
void Schedule(unsigned ms);
@@ -90,10 +65,6 @@ protected:
private:
void Run();
-
-#ifdef USE_GLIB_EVENTLOOP
- static gboolean Callback(gpointer data);
-#endif
};
#endif /* MAIN_NOTIFY_H */