Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
Public Member Functions | List of all members
detail::ControlBlock Class Reference

Helps implement SharedHandle & SharedDevPtr. More...

#include <shared.h>

Inheritance diagram for detail::ControlBlock:
Inheritance graph
[legend]

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
 

Detailed Description

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:


The documentation for this class was generated from the following file: