Apparatus
Version 1.23
ECS data-oriented workflow for Unreal Engine.
|
The common runnable mechanic base. More...
#include <CommonChain.h>
Public Member Functions | |
bool | ShouldStop () const |
void | Stop () override |
auto | HasFinished () const |
Check if the runnable has finished its execution. | |
EApparatusStatus | Halt (bool bShouldWait=true) |
Halt the execution of the runnable on its thread. | |
EApparatusStatus | WaitForCompletion () |
Wait for the mechanic to complete. | |
FCommonRunnableMechanic (const bool bInConcurrent) | |
Initialize the base mechanic. | |
~FCommonRunnableMechanic () override | |
Protected Attributes | |
bool | bConcurrent = false |
Is the runnable asynchronous (concurrent). | |
FRunnableThread * | Thread = nullptr |
The executing thread. | |
std::atomic< bool > | bStop {false} |
Manual stop signal. | |
std::atomic< bool > | bFinished {false} |
Has the runnable finished executing. | |
The common runnable mechanic base.
|
inline |
Initialize the base mechanic.
bInConcurrent | Should the mechanic be executed in a concurrent environment. |
|
inlineoverride |
|
inline |
Halt the execution of the runnable on its thread.
|
inline |
Check if the runnable has finished its execution.
|
inline |
|
inlineoverride |
|
inline |
Wait for the mechanic to complete.
|
protected |
Is the runnable asynchronous (concurrent).
|
protected |
Has the runnable finished executing.
|
protected |
Manual stop signal.
|
protected |
The executing thread.