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

#include <PThreadSemaphore.h>

Public Member Functions

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

Private Attributes

sem_t Semaphore
 

Detailed Description

Definition at line 12 of file PThreadSemaphore.h.

Constructor & Destructor Documentation

◆ FPThreadSemaphore()

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

Definition at line 17 of file PThreadSemaphore.h.

◆ ~FPThreadSemaphore()

FPThreadSemaphore::~FPThreadSemaphore ( )
inline

Definition at line 23 of file PThreadSemaphore.h.

Member Function Documentation

◆ Acquire()

void FPThreadSemaphore::Acquire ( )
inline

Definition at line 29 of file PThreadSemaphore.h.

◆ Release()

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

Definition at line 48 of file PThreadSemaphore.h.

◆ TryAcquire()

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

Definition at line 35 of file PThreadSemaphore.h.

◆ UE_NONCOPYABLE()

FPThreadSemaphore::UE_NONCOPYABLE ( FPThreadSemaphore )

Member Data Documentation

◆ Semaphore

sem_t FPThreadSemaphore::Semaphore
private

Definition at line 59 of file PThreadSemaphore.h.


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