24 #if !HAVE_ATOMICS_NATIVE
105 #error "Threading is enabled, but there is no implementation of atomic operations available"
const char const char void * val
#define pthread_mutex_lock(a)
int avpriv_atomic_int_get(volatile int *ptr)
Load the current value stored in an atomic integer.
void avpriv_atomic_int_set(volatile int *ptr, int val)
Store a new value in an atomic integer.
#define pthread_mutex_unlock(a)
int avpriv_atomic_int_add_and_fetch(volatile int *ptr, int inc)
Add a value to an atomic integer.
void * avpriv_atomic_ptr_cas(void *volatile *ptr, void *oldval, void *newval)
Atomic pointer compare and swap.
static pthread_mutex_t atomic_lock