uHTTP for C++
uHTTP::Semaphore Class Reference

#include <Semaphore.h>

Public Member Functions

 Semaphore (size_t maxCount)
 
 ~Semaphore ()
 
bool post ()
 
bool wait (time_t timeoutSec=0)
 
bool reset ()
 
bool cancel ()
 

Private Member Functions

bool init (size_t maxCount)
 
bool destory ()
 

Private Attributes

SemaphoreId semId
 
bool isInitialized
 
size_t maxCount
 

Constructor & Destructor Documentation

◆ Semaphore()

uHTTP::Semaphore::Semaphore ( size_t maxCount)

◆ ~Semaphore()

uHTTP::Semaphore::~Semaphore ( )

Member Function Documentation

◆ cancel()

bool uHTTP::Semaphore::cancel ( )

◆ destory()

bool uHTTP::Semaphore::destory ( )
private

◆ init()

bool uHTTP::Semaphore::init ( size_t maxCount)
private

◆ post()

bool uHTTP::Semaphore::post ( )

◆ reset()

bool uHTTP::Semaphore::reset ( )

◆ wait()

bool uHTTP::Semaphore::wait ( time_t timeoutSec = 0)

Field Documentation

◆ isInitialized

bool uHTTP::Semaphore::isInitialized
private

◆ maxCount

size_t uHTTP::Semaphore::maxCount
private

◆ semId

SemaphoreId uHTTP::Semaphore::semId
private

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