[vlc-devel] [PATCH] test: add thread test

Alexandre Janniaux ajanni at videolabs.io
Fri Mar 20 21:40:30 CET 2020


And in VLC threading primitives neither according to the
documentation. Is there any benefit to add this restriction?

Regards,
--
Alexandre Janniaux
Videolabs

On Fri, Mar 20, 2020 at 09:32:32PM +0100, Romain Vimont wrote:
> On 3/20/20 8:53 PM, Rémi Denis-Courmont wrote:
> > Le perjantaina 20. maaliskuuta 2020, 20.28.21 EET Romain Vimont a écrit :
> > > A thread calling cond_signal() may not "signal itself" since it's not
> > > cond_wait()ing. :/
> >
> > Sure it can. That's the whole point.
>
> For pthread at least, it seems it cannot:
> https://linux.die.net/man/3/pthread_cond_signal
>
> > The pthread_cond_broadcast() and pthread_cond_signal() functions shall have no effect if there are no threads currently blocked on cond.
>
> Where is it authorized to behave that way?
> _______________________________________________
> 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