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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user