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

Rémi Denis-Courmont remi at remlab.net
Tue Feb 7 17:48:57 CET 2012

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.

Rémi Denis-Courmont

More information about the vlc-devel mailing list