]> git.sesse.net Git - vlc/blobdiff - include/vlc_atomic.h
aout: use separate lock for the packet FIFO (fix #5131)
[vlc] / include / vlc_atomic.h
index 48c2cbbabaf0a60f9aea4b6898f82d7ac2a03c0d..39d02b4b514283153b2ed6addac560cd063a4b95 100644 (file)
@@ -26,6 +26,9 @@
  * Atomic operations do not require locking, but they are not very powerful.
  */
 
+/** Static initializer for \ref vlc_atomic_t */
+# define VLC_ATOMIC_INIT(val) { (val) }
+
 /* All functions return the atom value _after_ the operation. */
 
 VLC_API uintptr_t vlc_atomic_get(const vlc_atomic_t *);