]> git.sesse.net Git - vlc/commit
playlist: Fix a possible dead lock when the playlist is killed.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 30 Mar 2008 17:02:00 +0000 (19:02 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 30 Mar 2008 17:02:00 +0000 (19:02 +0200)
commit6aea931967cfdb0e3d0ae5161bac9d25fa2d41b8
treeb384479601ad5e13a497ea4b69eb7d20539e310a
parent6db16f08c744e65a458764c114feef1926cb0f11
playlist: Fix a possible dead lock when the playlist is killed.

We do maintain a lock around vlc_object_alive() because we want to make sure we won't miss the point when a concurrent thread will call vlc_object_kill(), that is set b_die and vlc_object_signal(). If we missed b_die and the signal, next vlc_object_wait() will dead lock.
src/playlist/thread.c