summaryrefslogtreecommitdiffstats
path: root/src/engine/controls/loopingcontrol.cpp
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-07 03:11:48 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-01-07 03:45:29 +0100
commitb591fc2f3b212ee2f866182d3afabb0c72c66f04 (patch)
treea87404788c5e8124689a66afbc0e296b9e26c603 /src/engine/controls/loopingcontrol.cpp
parent5e8e2e002e780b03ed7bfd5ab784d3a047a4b818 (diff)
Add util wrapper function for QAtomic*<T>::load/store[Relaxed] methods
Diffstat (limited to 'src/engine/controls/loopingcontrol.cpp')
-rw-r--r--src/engine/controls/loopingcontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/controls/loopingcontrol.cpp b/src/engine/controls/loopingcontrol.cpp
index 245201df76..bd2554a2cf 100644
--- a/src/engine/controls/loopingcontrol.cpp
+++ b/src/engine/controls/loopingcontrol.cpp
@@ -856,7 +856,7 @@ void LoopingControl::notifySeek(double dNewPlaypos) {
void LoopingControl::setLoopingEnabled(bool enabled) {
m_bLoopingEnabled = enabled;
m_pCOLoopEnabled->set(enabled);
- BeatLoopingControl* pActiveBeatLoop = m_pActiveBeatLoop.load();
+ BeatLoopingControl* pActiveBeatLoop = atomicLoadRelaxed(m_pActiveBeatLoop);
if (pActiveBeatLoop != nullptr) {
if (enabled) {
pActiveBeatLoop->activate();