Navigation
API > API/Runtime > API/Runtime/Chaos
Description
Helper to call from task execution logic. Returns true if the tasks should be run, or if it is better to stay on a single thread and not spawn tasks.
| Name | Chaos::ShouldExecuteTasks |
| 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::ShouldExecuteTasks
(
int32 InInstanceNum
)
}
Parameters
| Name | Remarks |
|---|---|
| InInstanceNum | The total number of instance that should be spread through the tasks. It will be compared to GlobalSmallBatchSize. |