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
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.
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 av_always_inline int pthread_mutex_unlock(pthread_mutex_t *mutex)
static av_always_inline int pthread_mutex_lock(pthread_mutex_t *mutex)