C++ Actor Framework 0.19
|
Base class for reference counted objects with an atomic reference count. More...
#include <atomic_ref_counted.hpp>
Public Member Functions | |
atomic_ref_counted (const atomic_ref_counted &) | |
atomic_ref_counted & | operator= (const atomic_ref_counted &) |
void | ref () const noexcept |
Increases reference count by one. | |
void | deref () const noexcept |
Decreases reference count by one and calls request_deletion when it drops to zero. | |
bool | unique () const noexcept |
Queries whether there is exactly one reference. | |
size_t | get_reference_count () const noexcept |
Queries the current reference count for this object. | |
Protected Attributes | |
std::atomic< size_t > | rc_ |
Base class for reference counted objects with an atomic reference count.