[vlc-devel] [vlc-commits] threads: store the condition variable value as an atomic_uint with LIBVLC_NEED_CONDVAR
Rémi Denis-Courmont
remi at remlab.net
Sun Feb 16 15:36:00 CET 2020
Le maanantaina 10. helmikuuta 2020, 15.54.10 EET Steve Lhomme a écrit :
> diff --git a/include/vlc_threads.h b/include/vlc_threads.h
> index 1598c9c804..68b98b6b33 100644
> --- a/include/vlc_threads.h
> +++ b/include/vlc_threads.h
> @@ -357,7 +357,12 @@ typedef struct vlc_timer *vlc_timer_t;
>
> typedef struct
> {
> - unsigned value;
> + union {
> +#ifndef __cplusplus
> + atomic_uint value;
> +#endif
> + int cpp_value;
> + };
> } vlc_cond_t;
> # define VLC_STATIC_COND { 0 }
This is incomplete. VLC_STATIC_COND needs to be updated as well.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list