[vlc-devel] [PATCH 2/4] libvlc: media_player: use vlc_atomic_rc for refcount
Rémi Denis-Courmont
remi at remlab.net
Mon Nov 23 10:13:55 CET 2020
Hi,
I don't really the point in using an atomic variable if it can't avoid the
mutex. Furthermore, using a media player from different threads does not make
much practical sense. Even if the code is safe against data races, the
behaviour will be poorly defined if two threads perform different operations
simultaneously.
--
雷米‧德尼-库尔蒙
http://www.remlab.net/
More information about the vlc-devel
mailing list