UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPThreadEvent Class Reference

#include <PThreadEvent.h>

+ Inheritance diagram for FPThreadEvent:

Public Member Functions

 FPThreadEvent ()
 
virtual ~FPThreadEvent ()
 
virtual bool Create (bool _bIsManualReset=false) override
 
virtual bool IsManualReset () override
 
virtual void Trigger () override
 
virtual void Reset () override
 
virtual bool Wait (uint32 WaitTime=(uint32) -1, const bool bIgnoreThreadIdleStats=false) override
 
- Public Member Functions inherited from FEvent
bool Wait ()
 
bool Wait (const FTimespan &WaitTime, const bool bIgnoreThreadIdleStats=false)
 
 FEvent ()
 
virtual ~FEvent ()
 
CORE_API void AdvanceStats ()
 

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
 

Detailed Description

This is the PThreads version of FEvent.

Constructor & Destructor Documentation

◆ FPThreadEvent()

FPThreadEvent::FPThreadEvent ( )
inline

◆ ~FPThreadEvent()

virtual FPThreadEvent::~FPThreadEvent ( )
inlinevirtual

Member Function Documentation

◆ Create()

virtual bool FPThreadEvent::Create ( bool  bIsManualReset = false)
inlineoverridevirtual

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 FPThreadEvent::IsManualReset ( )
inlineoverridevirtual

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 FPThreadEvent::Reset ( )
inlineoverridevirtual

Resets the event to an untriggered (waitable) state.

See also
IsManualReset, Trigger

Implements FEvent.

◆ Trigger()

virtual void FPThreadEvent::Trigger ( )
inlineoverridevirtual

Triggers the event so any waiting threads are activated.

See also
IsManualReset, Reset

Implements FEvent.

◆ Wait()

virtual bool FPThreadEvent::Wait ( uint32  WaitTime = (uint32) -1,
const bool  bIgnoreThreadIdleStats = false 
)
overridevirtual

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.


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