#include <isc/platform.h>
#include <isc/types.h>
Go to the source code of this file.
Defines | |
#define | ISC_ATOMIC_H 1 |
This routine atomically increments the value stored in 'p' by 'val', and returns the previous value.
static inline void isc_atomic_store(void *p, isc_int32_t val);
This routine atomically stores the value 'val' in 'p'.
static inline isc_int32_t isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val);
This routine atomically replaces the value in 'p' with 'val', if the original value is equal to 'cmpval'. The original value is returned in any case.
Definition in file atomic.h.