|
libqi-api
2.4.3.28
|
Object tracking by blocking destruction while shared pointers are present. More...
#include <trackable.hpp>
Public Member Functions | |
| Trackable (T *ptr) | |
| Default constructor. More... | |
| ~Trackable () | |
| Default destructor. More... | |
| boost::shared_ptr< T > | lock () |
| 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 42 of file trackable.hpp.
|
inline |
Default constructor.
Definition at line 21 of file trackable.hxx.
|
inline |
Default destructor.
Definition at line 54 of file trackable.hxx.
|
inlineprotected |
Must be called by parent class destructor, first thing. Can block until lock holders terminate
Definition at line 28 of file trackable.hxx.
|
inline |
Definition at line 67 of file trackable.hxx.
|
inline |
Blocks until destroy() is called and all shared_ptr built from weak_ptr() are deleted.
Definition at line 35 of file trackable.hxx.
|
inline |
Definition at line 73 of file trackable.hxx.