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

Romain Vimont rom at rom1v.com
Fri May 16 16:04:14 CEST 2014


OK, so we agree that we need another variable (b_finishing),
synchronized, to be written from another thread calling ThreadRead() and
read in BlockUDP(), as implemented in this patch?

--
®om

Le vendredi 16 mai 2014 à 21:25 +0800, Rémi Denis-Courmont a écrit :
> Le 2014-05-14 14:27, Romain Vimont a écrit :
> >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
> >BlockUDP()?
> 
> Uh? b_eof should be written in BlockUDP(). I never wrote that you
> should write it another thread; that would of course be wrong.
> 
> -- 
> Rémi Denis-Courmont
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list