Go to the documentation of this file.
19 #ifndef GNASH_REF_COUNTED_H
20 #define GNASH_REF_COUNTED_H
44 mutable std::atomic<int> m_ref_count;
52 assert(m_ref_count == 0);
69 assert(m_ref_count >= 0);
75 assert(m_ref_count > 0);
99 #endif // GNASH_REF_COUNTED_H
long get_ref_count() const
Definition: ref_counted.h:82
void intrusive_ptr_release(const ref_counted *o)
Definition: ref_counted.h:92
ref_counted()
Definition: ref_counted.h:56
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
virtual ~ref_counted()
Definition: ref_counted.h:50
void add_ref() const
Definition: ref_counted.h:68
void intrusive_ptr_add_ref(const ref_counted *o)
Definition: ref_counted.h:86
#define DSOEXPORT
Definition: dsodefs.h:55
void drop_ref() const
Definition: ref_counted.h:73
ref_counted(const ref_counted &)
Definition: ref_counted.h:62
@ o
Definition: GnashKey.h:161
For stuff that's tricky to keep track of w/r/t ownership & cleanup. The only use for this class seems...
Definition: ref_counted.h:35