Navigation
API > API/Runtime > API/Runtime/Core
A synchronisation primitive, a recommended substitution of `FEvent_ for signalling between tasks. If used as a task prerequisite or a nested task, it doesn't block a worker thread. Optionally can use "busy waiting" - executing tasks while waiting.
| Name | FTaskEvent |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Tasks/Task.h |
| Include Path | #include "Tasks/Task.h" |
Syntax
class FTaskEvent : public UE::Tasks::Private::FTaskHandle
Inheritance Hierarchy
- FTaskHandle → FTaskEvent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FTaskEvent
(
const TCHAR* DebugName |
Tasks/Task.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddPrerequisites
(
const PrerequisitesType& Prerequisites |
All prerequisites must be added before triggering the event | Tasks/Task.h | |
void Trigger() |
Tasks/Task.h |