40 virtual
bool DoTask(const
unsigned int ATask) = 0;
45 #include "ThreadableTaskset.inl"
virtual bool DoTask(const unsigned int ATask)=0
Called by BeginThreadedOperation FNumTasks times with an incrementing ATask value. Each time it is called task number ATask should be run.
std::atomic_bool FCancelFlag
The cancellation flag.
const unsigned int FNumTasks
The total number of tasks to perform.
The basic multithreading interface.
void CancelThreadedOperation(void) noexceptfinaloverride
Called by the internal thread manager to request cancellation of a thread. May also be called by the ...
void BeginThreadedOperation(void) finaloverride
Called at the start of a threading operation in a new thread by the internal thread manager...
ThreadableTaskset(const unsigned int ANumTasks) noexcept
Construct a ThreadableTaskset.
A mutlithreading interface with a number of jobs in mind.