Navigation
API > API/Runtime > API/Runtime/Chaos
Description
Helper to call from task execution logic that does not use ParallelFor, to know if it should use parallel execution or not. Returns true if the tasks should be run in parallel based on the current context.
| Name | Chaos::ShouldExecuteTasksInParallel |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Framework/Parallel.h |
| Include Path | #include "Chaos/Framework/Parallel.h" |
| Source | /Engine/Source/Runtime/Experimental/Chaos/Private/Chaos/Framework/Parallel.cpp |
namespace Chaos
{
bool Chaos::ShouldExecuteTasksInParallel
(
int32 InTaskNum
)
}
Parameters
| Name | Remarks |
|---|---|
| InTaskNum | The total number of tasks that need to run, will be compared to MinParallelTaskSize |