diff options
author | Max Kellermann <max@duempel.org> | 2014-01-04 19:31:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-04 19:31:23 +0100 |
commit | f0d3b47ad819eadf04569d6886b7aa7d06154511 (patch) | |
tree | 6276888d083341499782c80d4aeab84016c1f91d /src/event/IdleMonitor.cxx | |
parent | bfe75335465711faae3181c5224119b23cc9d2e0 (diff) | |
download | mpd-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.cxx')
-rw-r--r-- | src/event/IdleMonitor.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/event/IdleMonitor.cxx b/src/event/IdleMonitor.cxx index 45f533e3f..6e500aa7b 100644 --- a/src/event/IdleMonitor.cxx +++ b/src/event/IdleMonitor.cxx @@ -31,14 +31,8 @@ IdleMonitor::Cancel() if (!IsActive()) return; -#ifdef USE_INTERNAL_EVENTLOOP active = false; loop.RemoveIdle(*this); -#endif -#ifdef USE_GLIB_EVENTLOOP - g_source_remove(source_id); - source_id = 0; -#endif } void @@ -50,13 +44,8 @@ IdleMonitor::Schedule() /* already scheduled */ return; -#ifdef USE_INTERNAL_EVENTLOOP active = true; loop.AddIdle(*this); -#endif -#ifdef USE_GLIB_EVENTLOOP - source_id = loop.AddIdle(Callback, this); -#endif } void @@ -64,26 +53,8 @@ IdleMonitor::Run() { assert(loop.IsInside()); -#ifdef USE_INTERNAL_EVENTLOOP assert(active); active = false; -#endif -#ifdef USE_GLIB_EVENTLOOP - assert(source_id != 0); - source_id = 0; -#endif OnIdle(); } - -#ifdef USE_GLIB_EVENTLOOP - -gboolean -IdleMonitor::Callback(gpointer data) -{ - IdleMonitor &monitor = *(IdleMonitor *)data; - monitor.Run(); - return false; -} - -#endif |