template<typename T>
class qi::Trackable< T >
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.
- Warning
- when inheriting from this class, you must invoke the destroy() method from your destructor, before any operation that puts your object in an invalid state.
-
since destroy() blocks until all shared pointers are destroyed, deadlocks may occur if used improperly.
Definition at line 40 of file trackable.hpp.