Skip to content
Snippets Groups Projects
Commit 92db822f authored by Liz de Sartiges's avatar Liz de Sartiges Committed by Hugo Beauzée-Luyssen
Browse files

core: static initializer for refcount

parent 19d23dbb
No related branches found
No related tags found
Loading
Pipeline #198726 passed with stage
in 14 minutes and 19 seconds
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment