r8brain-free-src
High-quality pro audio sample rate converter library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
r8b::CSyncKeeper Class Reference

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

#include <r8bbase.h>

Public Member Functions

 CSyncKeeper (CSyncObject &aSyncObj)
 
 CSyncKeeper (CSyncObject *const aSyncObj)
 

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)
Parameters
aSyncObjPointer to the sync object which should be used for sync'ing, can be NULL.

◆ CSyncKeeper() [2/2]

r8b::CSyncKeeper::CSyncKeeper ( CSyncObject aSyncObj)
Parameters
aSyncObjReference to the sync object which should be used for sync'ing.