AcresCorePool.h#
Game/Core/Source/AcresCorePool.h Generated
The worker pool of the batched environments of ACRES Core (FAcresBatch for the Polaris, FAcresTractorBatch for the Maxxum): persistent threads that run one job of Count indices at a time. A job is a blocking call (ParallelFor): the calling thread works too, and the call returns when every index is done. Each index runs on one thread only, and the result of an index does not depend on which thread ran it, so a batch gives the same bytes with any number of threads. The pool is not a control flow of its own: one caller, one job at a time, in the caller's step order.
~FAcresThreadPool#
Stops and joins the workers.
Start#
Starts Threads - 1 workers (the caller is the last thread); Threads <= 0 takes all hardware threads. Call once, before the first ParallelFor.
ParallelFor#
Runs Fn(i) for i in [0, Count) on the pool and returns when all are done (serial without workers or for one index). One caller at a time.
Threads#
Threads that work on a job (the workers and the caller).