![]() |
r8brain-free-src
High-quality pro audio sample rate converter library
|
A "keeper" class for CSyncObject-based synchronization. More...
#include <r8bbase.h>
Public Member Functions | |
CSyncKeeper (CSyncObject &aSyncObj) | |
CSyncKeeper (CSyncObject *const aSyncObj) | |
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.
r8b::CSyncKeeper::CSyncKeeper | ( | CSyncObject *const | aSyncObj | ) |
aSyncObj | Pointer to the sync object which should be used for sync'ing, can be NULL. |
r8b::CSyncKeeper::CSyncKeeper | ( | CSyncObject & | aSyncObj | ) |
aSyncObj | Reference to the sync object which should be used for sync'ing. |