14#ifndef CPL_ATOMIC_OPS_INCLUDED
15#define CPL_ATOMIC_OPS_INCLUDED
44int CPL_DLL CPLAtomicAdd(
volatile int *ptr,
int increment);
55#define CPLAtomicInc(ptr) CPLAtomicAdd(ptr, 1)
66#define CPLAtomicDec(ptr) CPLAtomicAdd(ptr, -1)
85int CPLAtomicCompareAndExchange(
volatile int *ptr,
int oldval,
int newval);
Core portability definitions for CPL.
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:289
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285