atomic.h File Reference

#include <isc/platform.h>
#include <isc/types.h>

Go to the source code of this file.

Defines

#define ISC_ATOMIC_H   1


Detailed Description

static inline isc_int32_t isc_atomic_xadd(isc_int32_t *p, isc_int32_t val);

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.


Define Documentation

#define ISC_ATOMIC_H   1

Definition at line 20 of file atomic.h.


Generated on Tue Apr 28 17:41:14 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha