|
Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
|
Helps implement SharedHandle & SharedDevPtr. More...
#include <shared.h>

Public Member Functions | |
| void | increment_count () noexcept |
| increment reference count | |
| void | decrement_count () noexcept |
decrement ref count & trigger destructor of this if the count hits 0 | |
Helps implement SharedHandle & SharedDevPtr.
The term "control block," is used to describe the analogous data structure that is used in typical implementations of std::shared_ptr
In more detail, a control block tracks: