From b0e8f556011b75026ca24a1f536df9a071fe0a1c Mon Sep 17 00:00:00 2001 From: Gergo Koteles Date: Fri, 3 Jan 2025 02:58:08 +0100 Subject: [PATCH] add synchronization for multcore operations --- src/minidexed.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/minidexed.h b/src/minidexed.h index bb6290b..e33b744 100644 --- a/src/minidexed.h +++ b/src/minidexed.h @@ -30,6 +30,7 @@ #include "serialmididevice.h" #include "perftimer.h" #include +#include #include #include #include @@ -309,8 +310,8 @@ private: #ifdef ARM_ALLOW_MULTI_CORE // unsigned m_nActiveTGsLog2; - volatile TCoreStatus m_CoreStatus[CORES]; - volatile unsigned m_nFramesToProcess; + std::atomic m_CoreStatus[CORES]; + std::atomic m_nFramesToProcess; float32_t m_OutputLevel[CConfig::AllToneGenerators][CConfig::MaxChunkSize]; #endif