1 #ifndef __base_object_h
2 #define __base_object_h
4 #include <ext/atomicity.h>
18 void operator=(
const iObject &);
26 void operator delete(
void *
p) { ::operator
delete(
p); }
37 mutable _Atomic_word ref;
43 return __gnu_cxx::__exchange_and_add(&ref, 1) + 1;
48 return __gnu_cxx::__exchange_and_add(&ref, -1) - 1;
53 return __gnu_cxx::__exchange_and_add(&ref, 0);
57 #define DECLARE_REF(x) \
64 #define DEFINE_REF(c) \
76 #define DECLARE_REF(x) \
virtual ~iObject()
Definition: object.h:20
oRefCount()
Definition: object.h:39
int operator++()
Definition: object.h:41
int operator--()
Definition: object.h:46
p
Definition: upgrade.py:63
int RESULT
Definition: object.h:12