engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FPThreadEvent类 参考

This is the PThreads version of FEvent. 更多...

#include <PThreadEvent.h>

+ 类 FPThreadEvent 继承关系图:

Public 成员函数

virtual bool Create (bool _bIsManualReset=false) override
 Creates the event. 更多...
 
virtual bool IsManualReset () override
 Whether the signaled state of this event needs to be reset manually. 更多...
 
virtual void Reset () override
 Resets the event to an untriggered (waitable) state. 更多...
 
virtual void Trigger () override
 Triggers the event so any waiting threads are activated. 更多...
 
virtual bool Wait (uint32 WaitTime=(uint32) -1, const bool bIgnoreThreadIdleStats=false) override
 Waits the specified amount of time for the event to be triggered. 更多...
 
- Public 成员函数 继承自 FEvent
void AdvanceStats ()
 Advances stats associated with this event. 更多...
 
virtual bool Create (bool bIsManualReset=false)=0
 Creates the event. 更多...
 
 FEvent ()
 Default constructor.
 
virtual bool IsManualReset ()=0
 Whether the signaled state of this event needs to be reset manually. 更多...
 
virtual void Reset ()=0
 Resets the event to an untriggered (waitable) state. 更多...
 
virtual void Trigger ()=0
 Triggers the event so any waiting threads are activated. 更多...
 
bool Wait ()
 Waits an infinite amount of time for the event to be triggered. 更多...
 
bool Wait (const FTimespan &WaitTime, const bool bIgnoreThreadIdleStats=false)
 Waits the specified amount of time for the event to be triggered. 更多...
 
virtual bool Wait (uint32 WaitTime, const bool bIgnoreThreadIdleStats=false)=0
 Waits the specified amount of time for the event to be triggered. 更多...
 
virtual ~FEvent ()
 Virtual destructor.
 

额外继承的成员函数

- Protected 成员函数 继承自 FEvent
void ResetForStats ()
 Resets start cycles to 0.
 
void TriggerForStats ()
 Send to the stats a special message which encodes a trigger for the event.
 
void WaitForStats ()
 Sends to the stats a special messages which encodes a wait for the event.
 
- Protected 属性 继承自 FEvent
uint32 EventId
 An unique id of this event.
 
TAtomic< uint32 > EventStartCycles
 Greater than 0, if the event called wait.
 
- 静态 Protected 属性 继承自 FEvent
static TAtomic< uint32 > EventUniqueId
 Counter used to generate an unique id for the events.
 

详细描述

This is the PThreads version of FEvent.

成员函数说明

◆ 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.

参数
bIsManualResetWhether the event requires manual reseting or not.
返回
true if the event was created, false otherwise.

实现了 FEvent.

◆ IsManualReset()

virtual bool FPThreadEvent::IsManualReset ( )
inlineoverridevirtual

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

返回
true if the state requires manual resetting, false otherwise.
参见
Reset

实现了 FEvent.

◆ Reset()

virtual void FPThreadEvent::Reset ( )
inlineoverridevirtual

Resets the event to an untriggered (waitable) state.

参见
IsManualReset, Trigger

实现了 FEvent.

◆ Trigger()

virtual void FPThreadEvent::Trigger ( )
inlineoverridevirtual

Triggers the event so any waiting threads are activated.

参见
IsManualReset, Reset

实现了 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.

参数
WaitTimeThe time to wait (in milliseconds).
bIgnoreThreadIdleStatsIf true, ignores ThreadIdleStats
返回
true if the event was triggered, false if the wait timed out.

实现了 FEvent.


该类的文档由以下文件生成: