14 #ifndef ATOMICADJUSTDUMMYIMPL_H 15 #define ATOMICADJUSTDUMMYIMPL_H 30 typedef void *Pointer;
32 ALWAYS_INLINE
static void inc(TVOLATILE Integer &var);
33 ALWAYS_INLINE
static bool dec(TVOLATILE Integer &var);
34 ALWAYS_INLINE
static Integer add(TVOLATILE Integer &var, Integer delta);
35 ALWAYS_INLINE
static Integer set(TVOLATILE Integer &var, Integer new_value);
36 ALWAYS_INLINE
static Integer get(
const TVOLATILE Integer &var);
38 ALWAYS_INLINE
static Pointer set_ptr(TVOLATILE Pointer &var, Pointer new_value);
39 ALWAYS_INLINE
static Pointer get_ptr(
const TVOLATILE Pointer &var);
41 ALWAYS_INLINE
static Integer compare_and_exchange(TVOLATILE Integer &mem,
45 ALWAYS_INLINE
static Pointer compare_and_exchange_ptr(TVOLATILE Pointer &mem,
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A trivial implementation for atomic adjustments for systems that don't require multiprogramming,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.