aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/IdleMonitor.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/IdleMonitor.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/IdleMonitor.hxx')
-rw-r--r--src/event/IdleMonitor.hxx28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/event/IdleMonitor.hxx b/src/event/IdleMonitor.hxx
index 6f7365532..8d3928583 100644
--- a/src/event/IdleMonitor.hxx
+++ b/src/event/IdleMonitor.hxx
@@ -22,10 +22,6 @@
#include "check.h"
-#ifdef USE_GLIB_EVENTLOOP
-#include <glib.h>
-#endif
-
class EventLoop;
/**
@@ -38,30 +34,15 @@ class EventLoop;
* as thread-safe.
*/
class IdleMonitor {
-#ifdef USE_INTERNAL_EVENTLOOP
friend class EventLoop;
-#endif
EventLoop &loop;
-#ifdef USE_INTERNAL_EVENTLOOP
bool active;
-#endif
-
-#ifdef USE_GLIB_EVENTLOOP
- guint source_id;
-#endif
public:
-#ifdef USE_INTERNAL_EVENTLOOP
IdleMonitor(EventLoop &_loop)
:loop(_loop), active(false) {}
-#endif
-
-#ifdef USE_GLIB_EVENTLOOP
- IdleMonitor(EventLoop &_loop)
- :loop(_loop), source_id(0) {}
-#endif
~IdleMonitor() {
Cancel();
@@ -72,13 +53,7 @@ public:
}
bool IsActive() const {
-#ifdef USE_INTERNAL_EVENTLOOP
return active;
-#endif
-
-#ifdef USE_GLIB_EVENTLOOP
- return source_id != 0;
-#endif
}
void Schedule();
@@ -89,9 +64,6 @@ protected:
private:
void Run();
-#ifdef USE_GLIB_EVENTLOOP
- static gboolean Callback(gpointer data);
-#endif
};
#endif /* MAIN_NOTIFY_H */