dispatch
JobSystem::dispatch
Launches a job to be executed by multiple worker threads.
Declaration
void dispatch(uint32_t jobCount, uint32_t jobsPerWorker, const std::function<void(JobDispatchArguments)>& job);
Parameters
Name |
Type |
Description |
---|---|---|
jobCount |
uint32_t |
The total number of jobs to execute. |
jobsPerWorker |
uint32_t |
The number of jobs each worker will execute. |
job |
const std::function<void(JobDispatchArguments)>& |
The job to be executed by the worker threads. |
Returns
None.