aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/shout_mp3.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-30 19:20:20 +0100
committerMax Kellermann <max@duempel.org>2008-12-30 19:20:20 +0100
commit10b5966bf656bc25261171f6fbf4ea35eff246af (patch)
treed7f665a1b5600e6d9a6da144c9c33d2e63f87a3f /src/output/shout_mp3.c
parent1f0804bdca0f273d667311f645fc48965a37ada1 (diff)
downloadmpd-10b5966bf656bc25261171f6fbf4ea35eff246af.tar.gz
mpd-10b5966bf656bc25261171f6fbf4ea35eff246af.tar.xz
mpd-10b5966bf656bc25261171f6fbf4ea35eff246af.zip
main_notify: removed notify object, use only pipe
To wake up the main thread, don't attempt to use a GCond/GMutex (struct notify). This kind of mixed wakeup method has known race conditions. The idea behind this patch is: for wakeups which happen while the main thread is sleeping, use only a pipe. For wakeups which happen while the main thread is waiting for the player thread, we can later change to GCond. For now, accept the overhead of using a pipe for the latter. In the long run, the main thread will never wait for the player thread, but will do everything asynchronously.
Diffstat (limited to 'src/output/shout_mp3.c')
0 files changed, 0 insertions, 0 deletions