event_pipe: replaced PIPE_EVENT_SIGNAL with main_notify

There is only one location using PIPE_EVENT_SIGNAL: to synchronize
player_command() with player_command_finished().  Use the "notify"
library instead of the event_pipe here.
This commit is contained in:
Max Kellermann
2009-01-02 11:20:41 +01:00
parent daf7c3db5a
commit 272ee5f7d2
6 changed files with 13 additions and 23 deletions
+2 -2
View File
@@ -23,7 +23,7 @@
#include "song.h"
#include "idle.h"
#include "pcm_utils.h"
#include "event_pipe.h"
#include "main.h"
#include <assert.h>
#include <stdio.h>
@@ -58,7 +58,7 @@ static void player_command(enum player_command cmd)
pc.command = cmd;
while (pc.command != PLAYER_COMMAND_NONE) {
notify_signal(&pc.notify);
event_pipe_wait();
notify_wait(&main_notify);
}
}