[vlc-devel] [PATCH] HLS: remove some useless mutex locks

Rafaël Carré funman at videolan.org
Tue Feb 7 19:27:03 CET 2012

Le 2012-02-07 11:48, Rémi Denis-Courmont a écrit :
> Le mardi 7 février 2012 18:33:50 Frederic YHUEL, vous avez écrit :
>> Out of the blue?
> The critical section does nothing other than signal the condition.
>> Do you mean that we should maintain the state (ALIVE | WAITING |
>> TERMINATED ) of the downloading thread in a shared variable, and that
>> we should call vlc_cond_signal() only after having checked the state?
> I am referring to the model behind POSIX condition variables, which is the one 
> that VLC condition variables follow.

Check the manpage of pthread_cond_wait it has some explanation.

More information about the vlc-devel mailing list