Macros | Typedefs
atomic.h File Reference

Atomic memory access. More...

Macros

#define VTM_ATOMIC_LOAD_INT32(PTR)   VTM_ATOMIC_ADD_INT32(PTR, 0)
 
#define VTM_ATOMIC_ZERO_INT32(PTR)   VTM_ATOMIC_AND_INT32(PTR, 0)
 
#define vtm_atomic_flag_init(VAR, VAL)   (VAR) = (VAL) ? 1 : 0;
 
#define vtm_atomic_flag_isset(VAR)   VTM_ATOMIC_LOAD_INT32(&(VAR))
 
#define vtm_atomic_flag_set(VAR)   (void) VTM_ATOMIC_OR_INT32(&(VAR), 1)
 
#define vtm_atomic_flag_unset(VAR)   (void) VTM_ATOMIC_AND_INT32(&(VAR), 0)
 

Typedefs

typedef VTM_ATOMIC_INT32_TYPE vtm_atomic_flag