diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 19:20:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-30 19:20:20 +0100 |
commit | 10b5966bf656bc25261171f6fbf4ea35eff246af (patch) | |
tree | d7f665a1b5600e6d9a6da144c9c33d2e63f87a3f /TODO | |
parent | 1f0804bdca0f273d667311f645fc48965a37ada1 (diff) | |
download | mpd-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 'TODO')
0 files changed, 0 insertions, 0 deletions