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_unsafe_counter Struct Reference

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

#include <intrusive_ref_counter.hpp>

Public Types

typedef unsigned int type
 

Static Public Member Functions

static unsigned int load (unsigned int const &counter) BOOST_NOEXCEPT
 
static void increment (unsigned int &counter) BOOST_NOEXCEPT
 
static unsigned int decrement (unsigned int &counter) BOOST_NOEXCEPT
 

Detailed Description

Thread unsafe reference counter policy for intrusive_ref_counter.

The policy instructs the intrusive_ref_counter base class to implement a reference counter suitable for single threaded use only. Pointers to the same object with this kind of reference counter must not be used by different threads.

Member Typedef Documentation

Member Function Documentation

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

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