|
libqi-api
release-2.5.3-2016-11-18
|
Object tracking by blocking destruction while shared pointers are present. More...
#include <trackable.hpp>
Public Member Functions | |
| Trackable () | |
| Default constructor. More... | |
| QI_API_DEPRECATED_MSG (Use default constructor instead) Trackable(T *ptr) | |
| ~Trackable () | |
| boost::weak_ptr< T > | weakPtr () |
| void | wait () |
Protected Member Functions | |
| void | destroy () |
Object tracking by blocking destruction while shared pointers are present.
Inherit from Trackable to allow a form of tracking that blocks destruction while shared pointers are held. This allows using your class without a shared_ptr wrapper.Definition at line 43 of file trackable.hpp.
|
inline |
Default constructor.
Definition at line 22 of file trackable.hxx.
|
inline |
Definition at line 63 of file trackable.hxx.
|
inlineprotected |
Must be called by parent class destructor, first thing. Can block until lock holders terminate
Definition at line 37 of file trackable.hxx.
| qi::Trackable< T >::QI_API_DEPRECATED_MSG | ( | Use default constructor | instead | ) |
|
inline |
Blocks until destroy() is called and all shared_ptr built from weak_ptr() are deleted.
Definition at line 44 of file trackable.hxx.
|
inline |
Definition at line 76 of file trackable.hxx.