15 #ifndef ATOMICADJUSTDUMMYIMPL_H 16 #define ATOMICADJUSTDUMMYIMPL_H 18 #include "dtoolbase.h" 19 #include "selectThreadImpl.h" 21 #include "numeric_types.h" 32 typedef void *Pointer;
34 INLINE
static void inc(TVOLATILE Integer &var);
35 INLINE
static bool dec(TVOLATILE Integer &var);
36 INLINE
static void add(TVOLATILE Integer &var, Integer delta);
37 INLINE
static Integer
set(TVOLATILE Integer &var, Integer new_value);
38 INLINE
static Integer
get(
const TVOLATILE Integer &var);
40 INLINE
static Pointer set_ptr(TVOLATILE Pointer &var, Pointer new_value);
41 INLINE
static Pointer get_ptr(
const TVOLATILE Pointer &var);
43 INLINE
static Integer compare_and_exchange(TVOLATILE Integer &mem,
47 INLINE
static Pointer compare_and_exchange_ptr(TVOLATILE Pointer &mem,
52 #include "atomicAdjustDummyImpl.I" A trivial implementation for atomic adjustments for systems that don't require multiprogramming, and therefore don't require special atomic operations.