[vlc-commits] [Git][videolan/vlc][master] core: static initializer for refcount

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Mar 10 15:57:09 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
92db822f by Juliane de Sartiges at 2022-03-10T15:12:55+00:00
core: static initializer for refcount

- - - - -


1 changed file:

- include/vlc_atomic.h


Changes:

=====================================
include/vlc_atomic.h
=====================================
@@ -37,6 +37,10 @@ using std::memory_order_acq_rel;
 #endif
 # include <vlc_common.h>
 
+#define VLC_STATIC_RC { \
+    .refs = ATOMIC_VAR_INIT(0) \
+}
+
 typedef struct vlc_atomic_rc_t {
     atomic_uintptr_t refs;
 } vlc_atomic_rc_t;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/92db822f89526b15b5cf1f1ea8e3517559b97a07

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/92db822f89526b15b5cf1f1ea8e3517559b97a07
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list