![]() |
r8brain-free-src
High-quality pro audio sample rate converter library
|
Multi-threaded synchronization object class. More...
#include <r8bbase.h>
Public Member Functions | |
void | acquire () |
void | release () |
Multi-threaded synchronization object class.
This class uses standard OS thread-locking (mutex) mechanism which is fairly efficient in most cases.
The acquire() function can be called recursively, in the same thread, for this kind of thread-locking mechanism. This will not produce a dead-lock.
void r8b::CSyncObject::acquire | ( | ) |
Function "acquires" *this thread synchronizer object immediately or waits until another thread releases it.
void r8b::CSyncObject::release | ( | ) |
Function "releases" *this previously acquired thread synchronizer object.