[vlc-devel] vlc: svn commit r22113 (courmisch)

Subversion daemon svn at videolan.org
Mon Sep 17 16:29:59 CEST 2007


r22113 | courmisch | 2007-09-17 16:29:59 +0200 (Mon, 17 Sep 2007) | 8 lines
Changed paths:
   M /trunk/src/playlist/control.c
   M /trunk/src/playlist/engine.c

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.

 > http://trac.videolan.org/vlc/changeset/22113



More information about the vlc-devel mailing list