]> git.sesse.net Git - vlc/commit
Signal the playlist BEFORE unlocking it.
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 17 Sep 2007 14:29:59 +0000 (14:29 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 17 Sep 2007 14:29:59 +0000 (14:29 +0000)
commit21724f580a769fdb2205218bb2e1e1acb8f645b6
treeddd12eb495f3d389b7e41d8f86d15e46e456e5b0
parent8440f6c09557f0f7ba39c5302b93376bcea4a7b1
Signal the playlist BEFORE unlocking it.
One should never signal a condition without the corresponding lock:
 "if predictable scheduling behavior is required, then that mutex shall
  be locked    by    the    thread   calling   pthread_cond_broadcast()
  or pthread_cond_signal()." -- POSIX

This only fixes the most obvious cases. There might be others.
src/playlist/control.c
src/playlist/engine.c