Task that will delete its object parameter. More...
#include <xsens_threadpool.h>

Public Member Functions | |
| bool | exec () override |
| deletes the managed object More... | |
| ThreadPoolObjectDeleter (T *obj) | |
| Constructor, creates the task to delete object a obj, but doesn't schedule it. More... | |
Public Member Functions inherited from xsens::ThreadPoolTask | |
| bool | isCanceling () const |
| Returns true if the task has been told to cancel itself. More... | |
| virtual unsigned int | needToWaitFor () |
| This function gets called by PooledThread when the exec() function returns false to determine if we should wait for a specific task. More... | |
| unsigned int | taskId () const |
| Returns the task ID of the task or 0 if it doesn't have a proper ID (yet) More... | |
| ThreadPoolTask () | |
| virtual | ~ThreadPoolTask () |
Private Member Functions | |
| ThreadPoolObjectDeleter const & | operator= (ThreadPoolObjectDeleter const &)=delete |
| ThreadPoolObjectDeleter (ThreadPoolObjectDeleter const &)=delete | |
Private Attributes | |
| T * | m_object |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename T > | |
| static ThreadPool::TaskId | deleteThreaded (T *obj) |
| Delete obj in the ThreadPool. More... | |
Task that will delete its object parameter.
This class can be used to schedule a delete of a single object in the ThreadPool. Normally you don't need to use this class directly, but can use the deleteThreaded function.
| T | The type of the object to delete |
Definition at line 168 of file xsens_threadpool.h.
|
privatedelete |
|
inline |
Constructor, creates the task to delete object a obj, but doesn't schedule it.
Definition at line 176 of file xsens_threadpool.h.
|
inlineoverridevirtual |
deletes the managed object
Implements xsens::ThreadPoolTask.
Definition at line 178 of file xsens_threadpool.h.
|
privatedelete |
|
related |
Delete obj in the ThreadPool.
This function will schedule a task to be executed by the ThreadPool which will delete obj
| obj | The object to be deleted |
| T | The type of the object to delete. Typically not required as the compiler should detect it automatically. |
Definition at line 193 of file xsens_threadpool.h.
|
private |
Definition at line 170 of file xsens_threadpool.h.