Thread executing tasks.
More...
#include <parallelism.h>
Thread executing tasks.
Definition at line 154 of file parallelism.h.
◆ TaskThread() [1/2]
Beatmup::TaskThread::TaskThread |
( |
const TaskThread & |
| ) |
|
|
privatedelete |
◆ TaskThread() [2/2]
Definition at line 159 of file parallelism.h.
ThreadIndex index
current thread index
◆ currentThread()
ThreadIndex Beatmup::TaskThread::currentThread |
( |
| ) |
const |
|
inline |
◆ isManaging()
bool Beatmup::TaskThread::isManaging |
( |
| ) |
const |
|
inline |
- Returns
true
if this thread is the managing thread
Definition at line 172 of file parallelism.h.
◆ numThreads()
virtual ThreadIndex Beatmup::TaskThread::numThreads |
( |
| ) |
const |
|
pure virtual |
◆ isTaskAborted()
virtual bool Beatmup::TaskThread::isTaskAborted |
( |
| ) |
const |
|
pure virtual |
◆ synchronize()
virtual void Beatmup::TaskThread::synchronize |
( |
| ) |
|
|
pure virtual |
Blocks until all the other threads running the same task reach the same point.
"The same point" is the same number of calls to synchronize(). This function does not throw any exception to be caught in the task code. However, if a thread running the task has failed, this function throws an exception the thread pool takes care of. This ensures a valid thread pool state and avoids dead locks when a task fails to proceed.
Implemented in Beatmup::ThreadPool::TaskThreadImpl.
◆ index
The documentation for this class was generated from the following file: