Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <refcount_policy.hpp>
Public Types | |
using | spinlock_type = spinlock |
Public Member Functions | |
refcount_policy () | |
refcount_policy (disowned) | |
void | inc () |
bool | dec () |
void | dec_unsafe () |
bool | unique () |
Public Attributes | |
std::atomic< int > | refcount |
Detailed Description
A reference counting policy implemented using an atomic int
count. It is thread-safe.
Definition at line 80 of file refcount_policy.hpp.
Member Typedef Documentation
◆ spinlock_type
Definition at line 82 of file refcount_policy.hpp.
Constructor & Destructor Documentation
◆ refcount_policy() [1/2]
|
inline |
Definition at line 86 of file refcount_policy.hpp.
◆ refcount_policy() [2/2]
|
inline |
Definition at line 87 of file refcount_policy.hpp.
Member Function Documentation
◆ dec()
|
inline |
Definition at line 94 of file refcount_policy.hpp.
References refcount.
◆ dec_unsafe()
|
inline |
Definition at line 99 of file refcount_policy.hpp.
References refcount.
◆ inc()
|
inline |
Definition at line 89 of file refcount_policy.hpp.
References refcount.
◆ unique()
|
inline |
Definition at line 105 of file refcount_policy.hpp.
References refcount.
Member Data Documentation
◆ refcount
|
mutable |
Definition at line 84 of file refcount_policy.hpp.
Referenced by dec(), dec_unsafe(), inc(), and unique().
The documentation for this struct was generated from the following file:
- src/immer/refcount/refcount_policy.hpp