8 #ifndef _TASKS_CLEANUP_TASK_H_
9 #define _TASKS_CLEANUP_TASK_H_
24 tdbg(
"cleanup_task(" <<
this <<
"): disposing " <<
m_disposable << std::endl);
38 #endif // _TASKS_CLEANUP_TASK_H_
Base class for objects/tasks that can be deleted.
disposable * m_disposable
bool handle_event(worker *worker, int)
cleanup_task(disposable *d)
bool can_dispose() const
Check if a task can be disposed or not.
virtual void dispose(worker *)=0
Dispose an object.