8 #ifndef _TASKS_DISPOSABLE_H_
9 #define _TASKS_DISPOSABLE_H_
59 #endif // _TASKS_DISPOSABLE_H_
Base class for objects/tasks that can be deleted.
std::atomic< bool > m_can_dispose
void disable_dispose()
Mark a task for being not disposable.
void enable_dispose()
Mark a task for being disposable.
bool can_dispose() const
Check if a task can be disposed or not.
virtual void dispose(worker *)=0
Dispose an object.