AWS SDK for C++  1.9.159
AWS SDK for C++
Public Member Functions | List of all members
Aws::Utils::Threading::Semaphore Class Reference

#include <Semaphore.h>

Public Member Functions

 Semaphore (size_t initialCount, size_t maxCount)
void WaitOne ()
void Release ()
void ReleaseAll ()

Detailed Description

Definition at line 18 of file Semaphore.h.

Constructor & Destructor Documentation

◆ Semaphore()

Aws::Utils::Threading::Semaphore::Semaphore ( size_t  initialCount,
size_t  maxCount 

Initializes a new instance of Semaphore class specifying the initial number of entries and the maximum number of concurrent entries.

Member Function Documentation

◆ Release()

void Aws::Utils::Threading::Semaphore::Release ( )

Exits the semaphore once.

◆ ReleaseAll()

void Aws::Utils::Threading::Semaphore::ReleaseAll ( )

Exit the semaphore up to the maximum number of entries available.

◆ WaitOne()

void Aws::Utils::Threading::Semaphore::WaitOne ( )

Blocks the current thread until it receives a signal.

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