summaryrefslogtreecommitdiffstats
path: root/src/plugins/coreaudio/coreaudioutils.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/coreaudio/coreaudioutils.mm')
-rw-r--r--src/plugins/coreaudio/coreaudioutils.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/coreaudio/coreaudioutils.mm b/src/plugins/coreaudio/coreaudioutils.mm
index 171e1f8d4..1f9b9866c 100644
--- a/src/plugins/coreaudio/coreaudioutils.mm
+++ b/src/plugins/coreaudio/coreaudioutils.mm
@@ -175,12 +175,12 @@ void CoreAudioRingBuffer::releaseWriteRegion(const CoreAudioRingBuffer::Region &
int CoreAudioRingBuffer::used() const
{
- return m_bufferUsed.load();
+ return m_bufferUsed.loadRelaxed();
}
int CoreAudioRingBuffer::free() const
{
- return m_bufferSize - m_bufferUsed.load();
+ return m_bufferSize - m_bufferUsed.loadRelaxed();
}
int CoreAudioRingBuffer::size() const
@@ -192,7 +192,7 @@ void CoreAudioRingBuffer::reset()
{
m_readPos = 0;
m_writePos = 0;
- m_bufferUsed.store(0);
+ m_bufferUsed.storeRelaxed(0);
}
QT_END_NAMESPACE