18 #define CEE_ATOMIC_COUNTER_CLASS_EXISTS
19 #elif defined(CEE_OSX)
20 #include <libkern/OSAtomic.h>
21 #define CEE_ATOMIC_COUNTER_CLASS_EXISTS
22 #elif defined __GNUC__
23 #define CEE_HAVE_GCC_ATOMICS
24 #define CEE_ATOMIC_COUNTER_CLASS_EXISTS
26 #ifdef CEE_IOS // Disable for all compilers and architectures for Apple iOS
27 #undef CEE_ATOMIC_COUNTER_CLASS_EXISTS
28 #ifndef CEE_WORKAROUND_TO_COMPILE_ON_SYSTEMS_WITHOUT_ATOMICS
29 #define CEE_WORKAROUND_TO_COMPILE_ON_SYSTEMS_WITHOUT_ATOMICS
33 #if defined(CEE_ATOMIC_COUNTER_CLASS_EXISTS)
37 class CEE_CORE_EXPORT AtomicCounter
40 explicit AtomicCounter(
int initialValue);
43 operator int ()
const;
44 void setCount(
int count);
49 int operator ++ (
int);
52 int operator -- (
int);
56 CEE_DISALLOW_COPY_AND_ASSIGN(AtomicCounter);
59 typedef volatile long ImplType;
60 #elif defined(CEE_IOS) || defined(CEE_OSX)
61 typedef int32_t ImplType;
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppAssert.cpp:18