Anklang-0.3.0.dev551+gad1415e2 anklang-0.3.0.dev551+gad1415e2
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 885 of file platform.cc.

References assert_return, and sem_init().

◆ ~ScopedSemaphore()

Ase::ScopedSemaphore::~ScopedSemaphore ( )
noexcept

Definition at line 911 of file platform.cc.

Member Function Documentation

◆ post()

int Ase::ScopedSemaphore::post ( )
noexcept

Unlock ScopedSemaphore.

Definition at line 894 of file platform.cc.

References errno(), and sem_post().

◆ wait()

int Ase::ScopedSemaphore::wait ( )
noexcept

Unlock ScopedSemaphore.

Definition at line 903 of file platform.cc.

References errno(), and sem_wait().


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