Commit da9ea07c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Add VLC_ATOMIC_INIT, static initializer for vlc_atomic_t

parent c0e10f7b
......@@ -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 *);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment