From 99a6f84bc82ba08530df395f4f9bd79171d3f133 Mon Sep 17 00:00:00 2001 From: Rene Stange Date: Fri, 18 Mar 2022 15:50:08 +0100 Subject: [PATCH] dexedadapter: Protect setSustain() with spin-lock too --- src/dexedadapter.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dexedadapter.h b/src/dexedadapter.h index 3e85c1b..7f2badc 100644 --- a/src/dexedadapter.h +++ b/src/dexedadapter.h @@ -70,6 +70,13 @@ public: m_SpinLock.Release (); } + void setSustain (bool sustain) + { + m_SpinLock.Acquire (); + Dexed::setSustain (sustain); + m_SpinLock.Release (); + } + private: CSpinLock m_SpinLock; };