21 #ifndef AVUTIL_ATOMIC_H
22 #define AVUTIL_ATOMIC_H
26 #if HAVE_ATOMICS_NATIVE
30 #elif HAVE_ATOMICS_WIN32
32 #elif HAVE_ATOMICS_SUNCC
const char const char void * val
void * avpriv_atomic_ptr_cas(void *volatile *ptr, void *oldval, void *newval)
Atomic pointer compare and swap.
void avpriv_atomic_int_set(volatile int *ptr, int val)
Store a new value in an atomic integer.
int avpriv_atomic_int_add_and_fetch(volatile int *ptr, int inc)
Add a value to an atomic integer.
int avpriv_atomic_int_get(volatile int *ptr)
Load the current value stored in an atomic integer.