Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::sp_adl_block::thread_safe_counter Struct Reference

Thread safe reference counter policy for intrusive_ref_counter. More...

#include <intrusive_ref_counter.hpp>

Public Types

typedef boost::detail::atomic_count type
 

Static Public Member Functions

static unsigned int load (boost::detail::atomic_count const &counter) BOOST_NOEXCEPT
 
static void increment (boost::detail::atomic_count &counter) BOOST_NOEXCEPT
 
static unsigned int decrement (boost::detail::atomic_count &counter) BOOST_NOEXCEPT
 

Detailed Description

Thread safe reference counter policy for intrusive_ref_counter.

The policy instructs the intrusive_ref_counter base class to implement a thread-safe reference counter, if the target platform supports multithreading.

Member Typedef Documentation

typedef boost::detail::atomic_count boost::sp_adl_block::thread_safe_counter::type

Member Function Documentation

static unsigned int boost::sp_adl_block::thread_safe_counter::decrement ( boost::detail::atomic_count &  counter)
inlinestatic
static void boost::sp_adl_block::thread_safe_counter::increment ( boost::detail::atomic_count &  counter)
inlinestatic
static unsigned int boost::sp_adl_block::thread_safe_counter::load ( boost::detail::atomic_count const &  counter)
inlinestatic

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