Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ParallelForTemplate
(
int32 Num, |
General purpose parallel for that uses the taskgraph | Async/ParallelFor.h | |
void ParallelForTemplate
(
const TCHAR* DebugName, |
General purpose parallel for that uses the taskgraph | Async/ParallelFor.h |
ParallelForTemplate(int32, const FunctionType &, EParallelForFlags)
Description
General purpose parallel for that uses the taskgraph
| Name | ParallelForTemplate |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/ParallelFor.h |
| Include Path | #include "Async/ParallelFor.h" |
template<typename FunctionType>
void ParallelForTemplate
(
int32 Num,
const FunctionType & Body,
EParallelForFlags Flags
)
Parameters
| Name | Remarks |
|---|---|
| Num; | number of calls of Body; Body(0), Body(1)....Body(Num - 1) |
| Body; | Function to call from multiple threads |
| bForceSingleThread; | Mostly used for testing, if true, run single threaded instead. Notes: Please add stats around to calls to parallel for and within your lambda as appropriate. Do not clog the task graph with long running tasks or tasks that block. |
ParallelForTemplate(const TCHAR *, int32, int32, const FunctionType &, EParallelForFlags)
Description
General purpose parallel for that uses the taskgraph
| Name | ParallelForTemplate |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/ParallelFor.h |
| Include Path | #include "Async/ParallelFor.h" |
template<typename FunctionType>
void ParallelForTemplate
(
const TCHAR * DebugName,
int32 Num,
int32 MinBatchSize,
const FunctionType & Body,
EParallelForFlags Flags
)
Parameters
| Name | Remarks |
|---|---|
| DebugName; | ProfilingScope and Debugname |
| Num; | number of calls of Body; Body(0), Body(1)....Body(Num - 1) |
| MinBatchSize; | Minimum Size of a Batch (will only launch DivUp(Num, MinBatchSize) Workers |
| Body; | Function to call from multiple threads |
| bForceSingleThread; | Mostly used for testing, if true, run single threaded instead. Notes: Please add stats around to calls to parallel for and within your lambda as appropriate. Do not clog the task graph with long running tasks or tasks that block. |