Ark Server API (ASA) - Wiki
|
#include <SingleThreadEvent.h>
Public Member Functions | |
FSingleThreadEvent () | |
virtual bool | Create (bool bIsManualReset=false) override |
virtual bool | IsManualReset () override |
virtual void | Trigger () override |
virtual void | Reset () override |
virtual bool | Wait (uint32 WaitTime, 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 () |
void | AdvanceStats () |
Private Attributes | |
bool | bTriggered |
bool | bManualReset |
Additional Inherited Members | |
Protected Member Functions inherited from FEvent | |
void | WaitForStats () |
void | TriggerForStats () |
void | ResetForStats () |
Protected Attributes inherited from FEvent | |
uint32 | EventId |
TAtomic< uint32 > | EventStartCycles |
Static Protected Attributes inherited from FEvent | |
static TAtomic< uint32 > | EventUniqueId |
Fake event object used when running with only one thread.
Definition at line 12 of file SingleThreadEvent.h.
|
inline |
Default constructor.
Definition at line 24 of file SingleThreadEvent.h.
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. |
Implements FEvent.
Definition at line 33 of file SingleThreadEvent.h.
Whether the signaled state of this event needs to be reset manually.
Implements FEvent.
Definition at line 39 of file SingleThreadEvent.h.
Resets the event to an untriggered (waitable) state.
Implements FEvent.
Definition at line 49 of file SingleThreadEvent.h.
Triggers the event so any waiting threads are activated.
Implements FEvent.
Definition at line 44 of file SingleThreadEvent.h.
|
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 |
Implements FEvent.
Definition at line 54 of file SingleThreadEvent.h.
|
private |
Should this event reset automatically or not.
Definition at line 19 of file SingleThreadEvent.h.
|
private |
Flag to know whether this event has been triggered.
Definition at line 16 of file SingleThreadEvent.h.