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:
@@ -77,6 +77,8 @@
|
||||
|
||||
GMainLoop *main_loop;
|
||||
|
||||
struct notify main_notify;
|
||||
|
||||
static void changeToUser(void)
|
||||
{
|
||||
#ifndef WIN32
|
||||
@@ -240,6 +242,7 @@ int main(int argc, char *argv[])
|
||||
changeToUser();
|
||||
|
||||
main_loop = g_main_loop_new(NULL, FALSE);
|
||||
notify_init(&main_notify);
|
||||
|
||||
event_pipe_init();
|
||||
event_pipe_register(PIPE_EVENT_IDLE, idle_event_emitted);
|
||||
|
||||
Reference in New Issue
Block a user