Chunkable task whose chunks can be run in parallel.
More...
#include <GREM/execution/Task.hpp>
Chunkable task whose chunks can be run in parallel.
◆ Function
Callback function pointer that executes a chunk of a parallel task.
◆ ParallelTask()
| grem::execution::ParallelTask::ParallelTask |
( |
Function | function | ) |
|
|
inlinenoexcept |
Construct a parallel task.
- Parameters
-
| function | callback function that executes a chunk of the parallel task. |
◆ execute()
Execute a chunk of the parallel task.
- Parameters
-
| subTaskContext | user-defined context pointer to pass to the callback function's void* subTaskContext parameter. |
| taskSharedMemory | non-owning pointer to the shared memory to provide to the callback function's byte* taskSharedMemory parameter. |
| subTaskIndex | index of the chunk to execute. Must be less than subTaskCount. |
| subTaskCount | number of chunks that this invocation is part of. Must be positive. |
- Exceptions
-
| any | exception thrown by the parallel task's callback function. |
The documentation for this class was generated from the following file: