Interface for waitable events. 更多...
#include <Event.h>
类 FEvent 继承关系图:Public 成员函数 | |
| 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 属性 | |
| uint32 | EventId |
| An unique id of this event. | |
| TAtomic< uint32 > | EventStartCycles |
| Greater than 0, if the event called wait. | |
静态 Protected 属性 | |
| static TAtomic< uint32 > | EventUniqueId |
| Counter used to generate an unique id for the events. | |
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.
| void FEvent::AdvanceStats | ( | ) |
Advances stats associated with this event.
Used to monitor wait->trigger history.
|
pure virtual |
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. |
在 FPThreadEvent , 以及 FSingleThreadEvent 内被实现.
|
pure virtual |
Whether the signaled state of this event needs to be reset manually.
在 FPThreadEvent , 以及 FSingleThreadEvent 内被实现.
|
pure virtual |
Resets the event to an untriggered (waitable) state.
在 FPThreadEvent , 以及 FSingleThreadEvent 内被实现.
|
pure virtual |
Triggers the event so any waiting threads are activated.
在 FPThreadEvent , 以及 FSingleThreadEvent 内被实现.
|
inline |
Waits an infinite amount of time for the event to be triggered.
|
inline |
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 |
在 FSingleThreadEvent , 以及 FPThreadEvent 内被实现.