Fake event object used when running with only one thread.
更多...
#include <SingleThreadEvent.h>
|
| virtual bool | Create (bool bIsManualReset=false) override |
| | Creates the event. 更多...
|
| |
|
| FSingleThreadEvent () |
| | Default constructor.
|
| |
| 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, const bool bIgnoreThreadIdleStats=false) override |
| | Waits the specified amount of time for the event to be triggered. 更多...
|
| |
| 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.
|
| |
|
|
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.
|
| |
|
uint32 | EventId |
| | An unique id of this event.
|
| |
|
TAtomic< uint32 > | EventStartCycles |
| | Greater than 0, if the event called wait.
|
| |
|
static TAtomic< uint32 > | EventUniqueId |
| | Counter used to generate an unique id for the events.
|
| |
Fake event object used when running with only one thread.
◆ Create()
| virtual bool FSingleThreadEvent::Create |
( |
bool |
bIsManualReset = false | ) |
|
|
inlineoverridevirtual |
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. |
- 返回
- true if the event was created, false otherwise.
实现了 FEvent.
◆ IsManualReset()
| virtual bool FSingleThreadEvent::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 FSingleThreadEvent::Reset |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Trigger()
| virtual void FSingleThreadEvent::Trigger |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Wait()
| virtual bool FSingleThreadEvent::Wait |
( |
uint32 |
WaitTime, |
|
|
const bool |
bIgnoreThreadIdleStats = false |
|
) |
| |
|
inlineoverridevirtual |
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 |
- 返回
- true if the event was triggered, false if the wait timed out.
实现了 FEvent.
该类的文档由以下文件生成: