From b3e2635ac1d6cb46ae5a41e4c9760127453e49db Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 1 Jan 2009 18:22:11 +0100 Subject: event_pipe: added pipe_event enum and callbacks Make the event_pipe (formerly main_notify) send/receive a set of events, with a callback for each one. The default event PIPE_EVENT_SIGNAL does not have a callback. It is still there for waking up the main thread, when it is waiting for the player thread. --- src/idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/idle.c') diff --git a/src/idle.c b/src/idle.c index bc857723f..26c15c48b 100644 --- a/src/idle.c +++ b/src/idle.c @@ -66,7 +66,7 @@ idle_add(unsigned flags) idle_flags |= flags; g_mutex_unlock(idle_mutex); - event_pipe_signal(); + event_pipe_emit(PIPE_EVENT_IDLE); } unsigned -- cgit v1.2.3