diff options
author | Max Kellermann <max@duempel.org> | 2009-01-03 13:19:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-03 13:19:01 +0100 |
commit | 48aace185958f9a6363a8ac389924fcf73acb8a7 (patch) | |
tree | 13c4ac8dd1031457339ebe287dc43ccc35e2151f /src/event_pipe.c | |
parent | 96814397ad6a43780171d06c7df187da9afd86da (diff) | |
download | mpd-48aace185958f9a6363a8ac389924fcf73acb8a7.tar.gz mpd-48aace185958f9a6363a8ac389924fcf73acb8a7.tar.xz mpd-48aace185958f9a6363a8ac389924fcf73acb8a7.zip |
event_pipe: moved variable "main_task" to main.c
Diffstat (limited to 'src/event_pipe.c')
-rw-r--r-- | src/event_pipe.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/event_pipe.c b/src/event_pipe.c index 8d9a7fed3..6398e9bbb 100644 --- a/src/event_pipe.c +++ b/src/event_pipe.c @@ -26,7 +26,6 @@ #include <glib.h> #include <string.h> -GThread *main_task; static int event_pipe[2]; static GMutex *event_pipe_mutex; static bool pipe_events[PIPE_EVENT_MAX]; @@ -78,8 +77,6 @@ void event_pipe_init(void) { GIOChannel *channel; - main_task = g_thread_self(); - if (pipe(event_pipe) < 0) g_error("Couldn't open pipe: %s", strerror(errno)); if (set_nonblocking(event_pipe[1]) < 0) @@ -90,8 +87,6 @@ void event_pipe_init(void) g_io_channel_unref(channel); event_pipe_mutex = g_mutex_new(); - - main_task = g_thread_self(); } void event_pipe_deinit(void) |