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

Romain Vimont rom at rom1v.com
Wed May 21 10:53:16 CEST 2014


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?

--
®om

Le mercredi 21 mai 2014 à 16:34 +0800, Rémi Denis-Courmont a écrit :
> Le 2014-05-20 23:11, Romain Vimont a écrit 
> >The flag b_eof must be accessed exclusively in the BU thread,
> 
> Again, that is true but that is not a problem in this situation. Your patch
> seems way overkill.
> 
> -- 
> 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