Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FWindowsSemaphore Class Reference

#include <WindowsSemaphore.h>

Public Member Functions

 UE_NONCOPYABLE (FWindowsSemaphore)
 
 FWindowsSemaphore (int32 InitialCount, int32 MaxCount)
 
 ~FWindowsSemaphore ()
 
void Acquire ()
 
bool TryAcquire (FTimespan Timeout=FTimespan::Zero())
 
void Release (int32 Count=1)
 

Private Attributes

HANDLE Semaphore
 

Detailed Description

Definition at line 11 of file WindowsSemaphore.h.

Constructor & Destructor Documentation

◆ FWindowsSemaphore()

FWindowsSemaphore::FWindowsSemaphore ( int32 InitialCount,
int32 MaxCount )
inline

Definition at line 16 of file WindowsSemaphore.h.

◆ ~FWindowsSemaphore()

FWindowsSemaphore::~FWindowsSemaphore ( )
inline

Definition at line 22 of file WindowsSemaphore.h.

Member Function Documentation

◆ Acquire()

void FWindowsSemaphore::Acquire ( )
inline

Definition at line 27 of file WindowsSemaphore.h.

◆ Release()

void FWindowsSemaphore::Release ( int32 Count = 1)
inline

Definition at line 40 of file WindowsSemaphore.h.

◆ TryAcquire()

bool FWindowsSemaphore::TryAcquire ( FTimespan Timeout = FTimespan::Zero())
inline

Definition at line 33 of file WindowsSemaphore.h.

◆ UE_NONCOPYABLE()

FWindowsSemaphore::UE_NONCOPYABLE ( FWindowsSemaphore )

Member Data Documentation

◆ Semaphore

HANDLE FWindowsSemaphore::Semaphore
private

Definition at line 48 of file WindowsSemaphore.h.


The documentation for this class was generated from the following file: