diff options
author | Max Kellermann <max@duempel.org> | 2013-01-10 19:13:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-14 09:15:49 +0100 |
commit | e83f805b8fa34db8ac0b885d3fb78c0e6437c908 (patch) | |
tree | 25c78bb3b016875aa9df2ec5449c623148083531 /src/IOThread.hxx | |
parent | be98afe34d550a322adea78f92f1fd2088408e96 (diff) | |
download | mpd-e83f805b8fa34db8ac0b885d3fb78c0e6437c908.tar.gz mpd-e83f805b8fa34db8ac0b885d3fb78c0e6437c908.tar.xz mpd-e83f805b8fa34db8ac0b885d3fb78c0e6437c908.zip |
Main, IOThread: move GMainLoop setup code to class EventLoop
Diffstat (limited to '')
-rw-r--r-- | src/IOThread.hxx | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/IOThread.hxx b/src/IOThread.hxx index b1731c263..a9401dc7f 100644 --- a/src/IOThread.hxx +++ b/src/IOThread.hxx @@ -24,6 +24,8 @@ #include <glib.h> +class EventLoop; + void io_thread_init(void); @@ -50,8 +52,8 @@ void io_thread_deinit(void); gcc_pure -GMainContext * -io_thread_context(void); +EventLoop & +io_thread_get(); /** * Is the current thread the I/O thread? @@ -60,18 +62,6 @@ gcc_pure bool io_thread_inside(void); -guint -io_thread_idle_add(GSourceFunc function, gpointer data); - -gcc_malloc -GSource * -io_thread_timeout_add(guint interval_ms, GSourceFunc function, gpointer data); - -gcc_malloc -GSource * -io_thread_timeout_add_seconds(guint interval, - GSourceFunc function, gpointer data); - /** * Call a function synchronously in the I/O thread. */ |