[vlc-devel] [PATCH] Avoid deadlock on UDP stop

Rémi Denis-Courmont remi at remlab.net
Wed May 21 11:33:46 CEST 2014

Le 2014-05-21 16:53, Romain Vimont a écrit :
> This is not a problem because I don't use b_eof for that. If I would
> write it from TR, then it would be a problem…
> According to you, apart from using a (synchronized) flag like
> b_finishing, how should we make TR wake up BU (blocked in
> block_FifoGet() in BlockUDP()) from the end of ThreadRead(), in order 
> to
> prevent the deadlock in all cases?

Write b_eof from BlockUDP() as normal, IIRC it was mentioned already.

Or better yet fix the real problem, the multiple unsynchronized alive 
flags of the input objects.

Rémi Denis-Courmont

More information about the vlc-devel mailing list