Ark Server API (ASA) - Wiki
|
#include <Event.h>
Public Member Functions | |
virtual bool | Create (bool bIsManualReset=false)=0 |
virtual bool | IsManualReset ()=0 |
virtual void | Trigger ()=0 |
virtual void | Reset ()=0 |
virtual bool | Wait (uint32 WaitTime, const bool bIgnoreThreadIdleStats=false)=0 |
bool | Wait () |
bool | Wait (const FTimespan &WaitTime, const bool bIgnoreThreadIdleStats=false) |
FEvent () | |
virtual | ~FEvent () |
void | AdvanceStats () |
Protected Member Functions | |
void | WaitForStats () |
void | TriggerForStats () |
void | ResetForStats () |
Protected Attributes | |
uint32 | EventId |
TAtomic< uint32 > | EventStartCycles |
Static Protected Attributes | |
static TAtomic< uint32 > | EventUniqueId |
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.
|
inline |
|
inlinevirtual |
void FEvent::AdvanceStats | ( | ) |
Advances stats associated with this event. Used to monitor wait->trigger history.
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. |
Implemented in FPThreadEvent, and FSingleThreadEvent.
Whether the signaled state of this event needs to be reset manually.
Implemented in FPThreadEvent, and FSingleThreadEvent.
Resets the event to an untriggered (waitable) state.
Implemented in FPThreadEvent, and FSingleThreadEvent.
|
protected |
Resets start cycles to 0.
Triggers the event so any waiting threads are activated.
Implemented in FPThreadEvent, and FSingleThreadEvent.
|
protected |
Send to the stats a special message which encodes a trigger for the event.
|
inline |
Waits the specified amount of time for the event to be triggered.
WaitTime | The time to wait. |
bIgnoreThreadIdleStats | If true, ignores ThreadIdleStats |
Definition at line 86 of file Event.h.
|
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 |
Implemented in FSingleThreadEvent, and FPThreadEvent.
|
protected |
Sends to the stats a special messages which encodes a wait for the event.
|
protected |