A class that contains a task and some administrative stuff. More...
Public Member Functions | |
| PooledTask () | |
| void | signalCompleted () noexcept |
| bool | waitForCompletion (uint32_t timeout=UINT32_MAX) |
| ~PooledTask () | |
Public Attributes | |
| volatile std::atomic< bool > | m_canceling |
| std::vector< std::shared_ptr< PooledTask > > | m_dependentTasks |
| A list of tasks that are waiting for this task to complete. More... | |
| unsigned int | m_id |
| The id that was assigned to the task by the ThreadPool. More... | |
| ThreadPoolTask * | m_task |
| The task that is to be executed. More... | |
| XsThreadId | m_threadId |
Private Attributes | |
| volatile std::atomic_bool | m_completed |
| WaitCondition | m_completedCondition |
| Mutex | m_completedMutex |
A class that contains a task and some administrative stuff.
Definition at line 130 of file xsens_threadpool.cpp.
|
inline |
Definition at line 139 of file xsens_threadpool.cpp.
|
inline |
Definition at line 150 of file xsens_threadpool.cpp.
|
inlinenoexcept |
Definition at line 170 of file xsens_threadpool.cpp.
|
inline |
Definition at line 156 of file xsens_threadpool.cpp.
| volatile std::atomic<bool> xsens::PooledTask::m_canceling |
Definition at line 137 of file xsens_threadpool.cpp.
|
private |
Definition at line 182 of file xsens_threadpool.cpp.
|
private |
Definition at line 184 of file xsens_threadpool.cpp.
|
private |
Definition at line 183 of file xsens_threadpool.cpp.
| std::vector<std::shared_ptr<PooledTask> > xsens::PooledTask::m_dependentTasks |
A list of tasks that are waiting for this task to complete.
Definition at line 135 of file xsens_threadpool.cpp.
| unsigned int xsens::PooledTask::m_id |
The id that was assigned to the task by the ThreadPool.
Definition at line 134 of file xsens_threadpool.cpp.
| ThreadPoolTask* xsens::PooledTask::m_task |
The task that is to be executed.
Definition at line 133 of file xsens_threadpool.cpp.
| XsThreadId xsens::PooledTask::m_threadId |
Definition at line 136 of file xsens_threadpool.cpp.