provides reference counted type More...
#include <retainable.hpp>
Inherited by boost::cmt::abstract_thread, boost::cmt::promise_base, and boost::cmt::task.
Public Member Functions | |
void | retain () |
void | release () |
Friends | |
class | stack_retainable |
provides reference counted type
Use with retainable_ptr<T> to get automatic retain/release functionality.
This class uses atomic operations so the reference count is safe for sharing objects among threads