NAP
Public Member Functions | List of all members
DirtyFlag Class Reference

#include <audio/utility/dirtyflag.h>

Public Member Functions

 DirtyFlag ()
 
void set ()
 
bool check ()
 

Description

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.

Constructor & Destructor Documentation

◆ DirtyFlag()

DirtyFlag ( )

Member Function Documentation

◆ check()

bool check ( )

Returns wether the flag is dirty and sets it to non-dirty at the same time in one atomic operation.

◆ set()

void set ( )

Set the flag to dirty in one atomic operation.