24#ifndef MY_REF_COUNTED_H
25#define MY_REF_COUNTED_H
Helper class for reference counting.
Definition: my_ref_counted.h:34
std::atomic< uint64 > m_count
the reference count value
Definition: my_ref_counted.h:45
bool release_reference(uint64 *new_count=nullptr)
Decreases a reference count.
Definition: my_ref_counted.cc:52
uint64 get_reference_count() const
Returns the reference counter value.
Definition: my_ref_counted.cc:71
virtual ~my_ref_counted()
uint64 add_reference()
Increases a reference count.
Definition: my_ref_counted.cc:41
my_ref_counted()
default constructor
Definition: my_ref_counted.cc:27
Some integer typedefs for easier portability.
uint64_t uint64
Definition: my_inttypes.h:69