UtilsLite
Utilities for C++ programming
Loading...
Searching...
No Matches
Utils::SimpleSemaphore Class Reference

#include <ThreadUtils.hxx>

Public Member Functions

 SimpleSemaphore () noexcept
 
void green () noexcept
 
void red () noexcept
 
void wait () noexcept
 
void wait_red () noexcept
 

Constructor & Destructor Documentation

◆ SimpleSemaphore()

Utils::SimpleSemaphore::SimpleSemaphore ( )
inlinenoexcept

Member Function Documentation

◆ green()

void Utils::SimpleSemaphore::green ( )
inlinenoexcept

unblock semaphore

◆ red()

void Utils::SimpleSemaphore::red ( )
inlinenoexcept

block semaphore

◆ wait()

void Utils::SimpleSemaphore::wait ( )
inlinenoexcept

wait until m_count <= 0

◆ wait_red()

void Utils::SimpleSemaphore::wait_red ( )
inlinenoexcept

wait until m_count > 0


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