![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ScopedEvent.h>
Public Member Functions | |
| CORE_API | FScopedEvent () |
| CORE_API | ~FScopedEvent () |
| void | Trigger () |
| CORE_API bool | IsReady () |
| FEvent * | Get () |
This class is allows a simple one-shot scoped event.
Usage: { FScopedEvent MyEvent; SendReferenceOrPointerToSomeOtherThread(&MyEvent); // Other thread calls MyEvent->Trigger(); // MyEvent destructor is here, we wait here. }
| FScopedEvent::FScopedEvent | ( | ) |
Default constructor.
| FScopedEvent::~FScopedEvent | ( | ) |
Destructor.
|
inline |
Retrieve the event, usually for passing around.
| bool FScopedEvent::IsReady | ( | ) |
Checks if the event has been triggered (used for special early out cases of scope event) if this returns true once it will return true forever
|
inline |
Triggers the event.