BUG REPORT: Multi-Threading with getCpuUsage and getXRun

Hello all,
I think there is an atomic flag missing around cpuProportion and xruns in AudioProcessLoadMeasurer. Otherwise I could only get those values from inside the audio thread and I find it hard to believe that this is actually intended for AudioDeviceManager::getCpuUsage().

I got bitten by this one too. It’s an easy fix to wrap around AudioProcessLoadMeasurer and copy CPU usage to an atomic in the audio thread, but it would probably make sense for the original class to be thread-safe.

Thank you for reporting.