UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSafeRecyclableEvent Class Referencefinal

#include <EventPool.h>

+ Inheritance diagram for FSafeRecyclableEvent:

Public Member Functions

 FSafeRecyclableEvent (FEvent *InInnerEvent)
 
 ~FSafeRecyclableEvent ()
 
virtual bool Create (bool bIsManualReset=false)
 
virtual bool IsManualReset ()
 
virtual void Trigger ()
 
virtual void Reset ()
 
virtual bool Wait (uint32 WaitTime, const bool bIgnoreThreadIdleStats=false)
 
- Public Member Functions inherited from FEvent
bool Wait ()
 
bool Wait (const FTimespan &WaitTime, const bool bIgnoreThreadIdleStats=false)
 
 FEvent ()
 
virtual ~FEvent ()
 
CORE_API void AdvanceStats ()
 

Public Attributes

FEventInnerEvent
 

Additional Inherited Members

- Protected Member Functions inherited from FEvent
CORE_API void WaitForStats ()
 
CORE_API void TriggerForStats ()
 
CORE_API void ResetForStats ()
 
- Protected Attributes inherited from FEvent
uint32 EventId
 
TAtomic< uint32EventStartCycles
 
- Static Protected Attributes inherited from FEvent
static CORE_API TAtomic< uint32EventUniqueId
 

Constructor & Destructor Documentation

◆ FSafeRecyclableEvent()

FSafeRecyclableEvent::FSafeRecyclableEvent ( FEvent InInnerEvent)
inline

◆ ~FSafeRecyclableEvent()

FSafeRecyclableEvent::~FSafeRecyclableEvent ( )
inline

Member Function Documentation

◆ Create()

virtual bool FSafeRecyclableEvent::Create ( bool  bIsManualReset = false)
inlinevirtual

Creates the event.

Manually reset events stay triggered until reset. Named events share the same underlying event.

Parameters
bIsManualResetWhether the event requires manual reseting or not.
Returns
true if the event was created, false otherwise.

Implements FEvent.

◆ IsManualReset()

virtual bool FSafeRecyclableEvent::IsManualReset ( )
inlinevirtual

Whether the signaled state of this event needs to be reset manually.

Returns
true if the state requires manual resetting, false otherwise.
See also
Reset

Implements FEvent.

◆ Reset()

virtual void FSafeRecyclableEvent::Reset ( )
inlinevirtual

Resets the event to an untriggered (waitable) state.

See also
IsManualReset, Trigger

Implements FEvent.

◆ Trigger()

virtual void FSafeRecyclableEvent::Trigger ( )
inlinevirtual

Triggers the event so any waiting threads are activated.

See also
IsManualReset, Reset

Implements FEvent.

◆ Wait()

virtual bool FSafeRecyclableEvent::Wait ( uint32  WaitTime,
const bool  bIgnoreThreadIdleStats = false 
)
inlinevirtual

Waits the specified amount of time for the event to be triggered.

A wait time of MAX_uint32 is treated as infinite wait.

Parameters
WaitTimeThe time to wait (in milliseconds).
bIgnoreThreadIdleStatsIf true, ignores ThreadIdleStats
Returns
true if the event was triggered, false if the wait timed out.

Implements FEvent.

Member Data Documentation

◆ InnerEvent

FEvent* FSafeRecyclableEvent::InnerEvent

The documentation for this class was generated from the following file: