Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
toolbox::util::ThreadSafePolicy Struct Reference

#include <toolbox/util/RefCount.hpp>

Public Types

using Type = std::atomic< int >
 

Static Public Member Functions

static void acquire () noexcept
 
static int fetch_add (Type &ref_count) noexcept
 
static int fetch_sub (Type &ref_count) noexcept
 
static int load (const Type &ref_count) noexcept
 

Detailed Description

Definition at line 27 of file RefCount.hpp.

Member Typedef Documentation

◆ Type

Definition at line 28 of file RefCount.hpp.

Member Function Documentation

◆ acquire()

static void toolbox::util::ThreadSafePolicy::acquire ( )
inlinestaticnoexcept

Definition at line 29 of file RefCount.hpp.

◆ fetch_add()

static int toolbox::util::ThreadSafePolicy::fetch_add ( Type ref_count)
inlinestaticnoexcept

Definition at line 30 of file RefCount.hpp.

◆ fetch_sub()

static int toolbox::util::ThreadSafePolicy::fetch_sub ( Type ref_count)
inlinestaticnoexcept

Definition at line 34 of file RefCount.hpp.

◆ load()

static int toolbox::util::ThreadSafePolicy::load ( const Type ref_count)
inlinestaticnoexcept

Definition at line 38 of file RefCount.hpp.


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