[vlc-devel] [PATCH] Avoid deadlock on UDP stop
rom at rom1v.com
Wed May 14 08:27:15 CEST 2014
Le mercredi 14 mai 2014 à 14:05 +0800, Rémi Denis-Courmont a écrit :
> Le 2014-05-11 22:42, Romain Vimont a écrit :
> >The purpose is similar.
> >However, p_access->info.b_eof is not, as far as I know, "synchronized"
> >(not atomic, no mutex), while we need to set it in ThreadRead() and read
> >it from BlockUDP() (two different threads).
> It obviously does not need to be synchronized here.
Could you explain?
If you use b_eof as it is, how do you guarantee that the value writen by
one thread in ThreadRead() will be visible by the other thread in
More information about the vlc-devel