Ark Server API (ASA) - Wiki
|
#include <PThreadEvent.h>
Public Member Functions | |
FPThreadEvent () | |
virtual | ~FPThreadEvent () |
virtual bool | Create (bool _bIsManualReset=false) override |
virtual bool | IsManualReset () override |
virtual void | Trigger () override |
virtual void | Reset () override |
virtual bool | Wait (uint32 WaitTime=(uint32) -1, 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 Types | |
enum | TriggerType { TRIGGERED_NONE , TRIGGERED_ONE , TRIGGERED_ALL } |
Private Member Functions | |
void | LockEventMutex () |
void | UnlockEventMutex () |
Static Private Member Functions | |
static void | SubtractTimevals (const struct timeval *FromThis, struct timeval *SubThis, struct timeval *Difference) |
Private Attributes | |
bool | bInitialized |
bool | bIsManualReset |
volatile TriggerType | Triggered |
volatile int32 | WaitingThreads |
pthread_mutex_t | Mutex |
pthread_cond_t | Condition |
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 |
This is the PThreads version of FEvent.
Definition at line 13 of file PThreadEvent.h.
|
private |
Enumerator | |
---|---|
TRIGGERED_NONE | |
TRIGGERED_ONE | |
TRIGGERED_ALL |
Definition at line 17 of file PThreadEvent.h.
|
inline |
Definition at line 65 of file PThreadEvent.h.
|
inlinevirtual |
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 102 of file PThreadEvent.h.
Whether the signaled state of this event needs to be reset manually.
Implements FEvent.
Definition at line 124 of file PThreadEvent.h.
|
inlineprivate |
Resets the event to an untriggered (waitable) state.
Implements FEvent.
Definition at line 156 of file PThreadEvent.h.
|
inlinestaticprivate |
Definition at line 43 of file PThreadEvent.h.
Triggers the event so any waiting threads are activated.
Implements FEvent.
Definition at line 129 of file PThreadEvent.h.
|
inlineprivate |
|
overridevirtual |
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.
|
private |
Definition at line 24 of file PThreadEvent.h.
|
private |
Definition at line 25 of file PThreadEvent.h.
|
private |
Definition at line 29 of file PThreadEvent.h.
|
private |
Definition at line 28 of file PThreadEvent.h.
|
private |
Definition at line 26 of file PThreadEvent.h.
Definition at line 27 of file PThreadEvent.h.