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

Multi-threaded synchronization object class. More...

#include <r8bbase.h>

Public Member Functions

void acquire ()
 Acquires this thread synchronizer object immediately or waits until another thread releases it.
 
void release ()
 Releases this, previously acquired, thread synchronizer object.
 

Detailed Description

Multi-threaded synchronization object class.

This class uses standard OS thread-locking (mutex) mechanism which is fairly efficient in most cases.

The acquire() function is re-enterant, and can be called recursively, in the same thread, for this kind of thread-locking mechanism. This will not produce a dead-lock.