[vlc-devel] [PATCH 3/7] playlist/fetcher: refactor
Rémi Denis-Courmont
remi at remlab.net
Wed Mar 29 21:10:23 CEST 2017
Le keskiviikkona 29. maaliskuuta 2017, 19.39.22 EEST Filip Roséen a écrit :
> Hi Rémi,
>
> On 2017-03-29 20:33, Rémi Denis-Courmont wrote:
> > Le perjantaina 24. maaliskuuta 2017, 3.28.30 EEST Filip Roséen a écrit :
> > > + vlc_interrupt_t interrupt;
> > > + vlc_thread_t thread;
> > > + atomic_bool active;
> >
> > This can´t be right. Either there is a lock and atomicity is not
> > necessary, or this will race.
>
> Could you elaborate on the potential race while keeping in mind the
> *synchronizes-with* relationship in terms of operations on that
> atomic?
You have a mutex and an atomic for what looks like the same thing.
Either one is too many, or there is a race.
--
雷米‧德尼-库尔蒙
https://www.remlab.net/
More information about the vlc-devel
mailing list