21 #ifndef AVUTIL_ATOMIC_WIN32_H
22 #define AVUTIL_ATOMIC_WIN32_H
24 #define WIN32_LEAN_AND_MEAN
27 #define avpriv_atomic_int_get atomic_int_get_win32
34 #define avpriv_atomic_int_set atomic_int_set_win32
41 #define avpriv_atomic_int_add_and_fetch atomic_int_add_and_fetch_win32
44 return inc + InterlockedExchangeAdd(ptr, inc);
47 #define avpriv_atomic_ptr_cas atomic_ptr_cas_win32
49 void *oldval,
void *newval)
51 return InterlockedCompareExchangePointer(ptr, newval, oldval);
const char const char void * val
static void * atomic_ptr_cas_win32(void *volatile *ptr, void *oldval, void *newval)
static void atomic_int_set_win32(volatile int *ptr, int val)
static int atomic_int_get_win32(volatile int *ptr)
static int atomic_int_add_and_fetch_win32(volatile int *ptr, int inc)