31 #ifndef CPL_ATOMIC_OPS_INCLUDED
32 #define CPL_ATOMIC_OPS_INCLUDED
61 int CPL_DLL CPLAtomicAdd(
volatile int *ptr,
int increment);
72 #define CPLAtomicInc(ptr) CPLAtomicAdd(ptr, 1)
83 #define CPLAtomicDec(ptr) CPLAtomicAdd(ptr, -1)
102 int 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:299
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:295