Public Member Functions | Data Fields
AtParallelJobs Struct Reference

Work scheduler structure that can run jobs in parallel. More...

#include <ai_threads.h>

Public Member Functions

void add (void *payload, AtParallelJobsFunc job)
 
void wait ()
 

Data Fields

AtParallelJobsID m_jobs
 

Detailed Description

Work scheduler structure that can run jobs in parallel.

This has more overhead than AiParallelFor(), but is more flexible as it allows for dispatching jobs without needing to place all the jobs in an array. For example:

for (size_t i = 0; i < job_count; ++i)
{
jobs.add(payload, &callback);
}
jobs.wait();
Work scheduler structure that can run jobs in parallel.
Definition: ai_threads.h:55

The documentation for this struct was generated from the following file:

© 2023 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com