#include <audio/utility/dirtyflag.h>
Public Member Functions | |
DirtyFlag () | |
void | set () |
bool | check () |
Atomic flag that can indicate wether a system needs updating. The flag is set on one thread (presumably the main thread) and checked on another thread (usually the audio thread). When the flag is checked it's value automatically changes to non-dirty at the same time in one atomic operation.
DirtyFlag | ( | ) |
bool check | ( | ) |
Returns wether the flag is dirty and sets it to non-dirty at the same time in one atomic operation.
void set | ( | ) |
Set the flag to dirty in one atomic operation.