My Project
|
single-threaded reference counted base class for boost::intrusive_ptr all boost::intrusive_ptr<T>, should derive from this class. More...
#include <NPLInterface.hpp>
Public Attributes | |
long | m_ref_count |
single-threaded reference counted base class for boost::intrusive_ptr all boost::intrusive_ptr<T>, should derive from this class.
this is NOT thead safe, use a lock when used by multiple thread. e.g. Class Foo : public intrusive_ptr_single_thread_base { members } so now Foo_ptr is the same as boost::shared_ptr typedef boost::intrusive_ptr<Foo> Foo_ptr;