• Max Kellermann's avatar
    fix deadlock at end of song · f0e28ede
    Max Kellermann authored
    Now that we do proper locking and signalling instead of continuous
    polling for IPC, a deadlock was found: at the end of a song, the
    player thread waits until the main thread sets pc->queueState from
    PLAYER_QUEUE_DECODE to PLAYER_QUEUE_PLAY.  He is never woken up, since
    syncPlaylistWithQueue() does not activate the notification.  I added
    wakeup_player_nb() to setQueueState(), since the player must be
    signalled whenever pc->queueState changes.
    
    git-svn-id: https://svn.musicpd.org/mpd/trunk@7303 09075e82-0dd4-0310-85a5-a0d7c8717e4f
    f0e28ede
Name
Last commit
Last update
doc Loading commit data...
m4 Loading commit data...
scripts Loading commit data...
src Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
TODO Loading commit data...
UPGRADING Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...