DDraceNetwork Docs
CSemaphore Class Reference

#include <threading.h>

Public Member Functions

 CSemaphore ()
 
 ~CSemaphore ()
 
 CSemaphore (const CSemaphore &)=delete
 
int GetApproximateValue ()
 
void Wait ()
 
void Signal ()
 

Private Attributes

SEMAPHORE m_Sem
 
std::atomic_int m_Count {0}
 

Constructor & Destructor Documentation

◆ CSemaphore() [1/2]

CSemaphore::CSemaphore ( )
inline

◆ ~CSemaphore()

CSemaphore::~CSemaphore ( )
inline

◆ CSemaphore() [2/2]

CSemaphore::CSemaphore ( const CSemaphore )
delete

Member Function Documentation

◆ GetApproximateValue()

int CSemaphore::GetApproximateValue ( )
inline

◆ Signal()

void CSemaphore::Signal ( )
inline

◆ Wait()

void CSemaphore::Wait ( )
inline

Member Data Documentation

◆ m_Count

std::atomic_int CSemaphore::m_Count {0}
private

◆ m_Sem

SEMAPHORE CSemaphore::m_Sem
private

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