Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Ase::ScopedSemaphore Class Reference

Public Member Functions

 ScopedSemaphore () noexcept
 Create a process-local semaphore.
 
int post () noexcept
 Unlock ScopedSemaphore.
 
int wait () noexcept
 Unlock ScopedSemaphore.
 

Detailed Description

Definition at line 104 of file platform.hh.

Constructor & Destructor Documentation

◆ ScopedSemaphore()

Ase::ScopedSemaphore::ScopedSemaphore ( )
explicitnoexcept

Create a process-local semaphore.

Definition at line 884 of file platform.cc.

References assert_return, and sem_init().

◆ ~ScopedSemaphore()

Ase::ScopedSemaphore::~ScopedSemaphore ( )
noexcept

Definition at line 910 of file platform.cc.

Member Function Documentation

◆ post()

int Ase::ScopedSemaphore::post ( )
noexcept

Unlock ScopedSemaphore.

Definition at line 893 of file platform.cc.

References errno(), and sem_post().

◆ wait()

int Ase::ScopedSemaphore::wait ( )
noexcept

Unlock ScopedSemaphore.

Definition at line 902 of file platform.cc.

References errno(), and sem_wait().


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