r8brain-free-src
High-quality pro audio sample rate converter library
 
Loading...
Searching...
No Matches
r8b::CSyncKeeper Class Reference

A "keeper" class for CSyncObject-based synchronization. More...

#include <r8bbase.h>

Public Member Functions

 CSyncKeeper (CSyncObject &aSyncObj)
 Constructor acquires a specified synchronization object.
 
 CSyncKeeper (CSyncObject *const aSyncObj)
 Constructor acquires a specified synchronization object.
 

Detailed Description

A "keeper" class for CSyncObject-based synchronization.

Sync keeper class. The object of this class can be used as auto-init and auto-deinit object for calling the acquire() and release() functions of an object of the CSyncObject class. This "keeper" object is best used in functions as an "automatic" object allocated on the stack, possibly via the R8BSYNC() macro.

Constructor & Destructor Documentation

◆ CSyncKeeper() [1/2]

r8b::CSyncKeeper::CSyncKeeper ( CSyncObject *const aSyncObj)

Constructor acquires a specified synchronization object.

Parameters
aSyncObjPointer to the sync object which should be used for sync'ing, can be nullptr.

◆ CSyncKeeper() [2/2]

r8b::CSyncKeeper::CSyncKeeper ( CSyncObject & aSyncObj)

Constructor acquires a specified synchronization object.

Parameters
aSyncObjReference to the sync object which should be used for sync'ing.