atomicity.h File Reference
#include <cxxtools/config.h>
#include <cxxtools/atomicity.generic.h>

Go to the source code of this file.

Namespaces

namespace  cxxtools

Functions

atomic_t cxxtools::atomicGet (volatile atomic_t &val)
 Atomically get a value.
void cxxtools::atomicSet (volatile atomic_t &val, atomic_t n)
 Atomically set a value.
atomic_t cxxtools::atomicIncrement (volatile atomic_t &val)
 Increases a value by one as an atomic operation.
atomic_t cxxtools::atomicDecrement (volatile atomic_t &val)
 Decreases a value by one as an atomic operation.
atomic_t cxxtools::atomicExchangeAdd (volatile atomic_t &val, atomic_t add)
 Performs atomic addition of two values.
atomic_t cxxtools::atomicCompareExchange (volatile atomic_t &val, atomic_t exch, atomic_t comp)
 Performs an atomic compare-and-exchange operation.
void * cxxtools::atomicCompareExchange (void *volatile &ptr, void *exch, void *comp)
 Performs an atomic compare-and-exchange operation.
atomic_t cxxtools::atomicExchange (volatile atomic_t &val, atomic_t exch)
 Performs an atomic exchange operation.
void * cxxtools::atomicExchange (void *volatile &dest, void *exch)
 Performs an atomic exchange operation.