Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Helpers
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Helpers/PCGAsyncState.h |
| Include | #include "Helpers/PCGAsyncState.h" |
Syntax
struct FPCGAsyncState
Remarks
Helper class to gather information about asynchronus execution. Will be held in the PCGContext.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | AsyncCurrentReadIndex | For async process, keep track of where the processing is, in the input data(read) and output data(write). | |
| int32 | AsyncCurrentWriteIndex | ||
| bool | bIsRunningAsyncCall | True if currently inside a PCGAsync scope - will prevent further async processing | |
| bool | bIsRunningOnMainThread | For multithreading, track if the current element is run on the main thread. | |
| double | EndTime | For timeslicing, it will be set by the graph executor to know when we should stop. | |
| int32 | NumAvailableTasks | How many tasks are available to run async. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ShouldStop () |
Returns true if we reached end time. |