AWS SDK for C++: Aws::Utils::Threading::Semaphore Class Reference

May 2024 · 1 minute read

#include <Semaphore.h>

Definition at line 18 of file Semaphore.h.

◆ 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.

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.

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:

ncG1vNJzZmirlKB7ornAs6anmaeoe6S7zGiaqahflr2qe8CwqmaboKV6tLDKZpqoqpVktbW5y2iapZmjqKyiw9KYaJhpj6rBqrjSmGiYaY%2BptbOxwJ2gp5%2BPZqxyq9KepJqomKS%2FpnrHraSl