![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Event.h>
Inheritance diagram for FEvent:Public Member Functions | |
| virtual bool | Create (bool bIsManualReset=false)=0 |
| virtual bool | IsManualReset ()=0 |
| virtual void | Trigger ()=0 |
| virtual void | Reset ()=0 |
| virtual bool | Wait (uint32 WaitTime, const bool bIgnoreThreadIdleStats=false)=0 |
| bool | Wait () |
| bool | Wait (const FTimespan &WaitTime, const bool bIgnoreThreadIdleStats=false) |
| FEvent () | |
| virtual | ~FEvent () |
| CORE_API void | AdvanceStats () |
Protected Member Functions | |
| CORE_API void | WaitForStats () |
| CORE_API void | TriggerForStats () |
| CORE_API void | ResetForStats () |
Protected Attributes | |
| uint32 | EventId |
| TAtomic< uint32 > | EventStartCycles |
Static Protected Attributes | |
| static CORE_API TAtomic< uint32 > | EventUniqueId |
Interface for waitable events.
This interface has platform-specific implementations that are used to wait for another thread to signal that it is ready for the waiting thread to do some work. It can also be used for telling groups of threads to exit.
Consider using FEventRef as a safer and more convenient alternative.
|
inline |
Default constructor.
|
inlinevirtual |
Virtual destructor.
| void FEvent::AdvanceStats | ( | ) |
Advances stats associated with this event. Used to monitor wait->trigger history.
Creates the event.
Manually reset events stay triggered until reset. Named events share the same underlying event.
| bIsManualReset | Whether the event requires manual reseting or not. |
Implemented in FPThreadEvent, FSafeRecyclableEvent, FEventWin, and FSingleThreadEvent.
Whether the signaled state of this event needs to be reset manually.
Implemented in FSafeRecyclableEvent, FEventWin, FPThreadEvent, and FSingleThreadEvent.
Resets the event to an untriggered (waitable) state.
Implemented in FSafeRecyclableEvent, FEventWin, FPThreadEvent, and FSingleThreadEvent.
|
protected |
Resets start cycles to 0.
Triggers the event so any waiting threads are activated.
Implemented in FSafeRecyclableEvent, FEventWin, FPThreadEvent, and FSingleThreadEvent.
|
protected |
Send to the stats a special message which encodes a trigger for the event.
|
inline |
Waits an infinite amount of time for the event to be triggered.
Waits the specified amount of time for the event to be triggered.
| WaitTime | The time to wait. |
| bIgnoreThreadIdleStats | If true, ignores ThreadIdleStats |
|
pure virtual |
Waits the specified amount of time for the event to be triggered.
A wait time of MAX_uint32 is treated as infinite wait.
| WaitTime | The time to wait (in milliseconds). |
| bIgnoreThreadIdleStats | If true, ignores ThreadIdleStats |
Implemented in FSafeRecyclableEvent, FEventWin, FSingleThreadEvent, and FPThreadEvent.
|
protected |
Sends to the stats a special messages which encodes a wait for the event.
|
protected |
An unique id of this event.
Counter used to generate an unique id for the events.