aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/qsa.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-02-26 04:58:02 -0800
committerChris Robinson <[email protected]>2020-02-26 04:58:02 -0800
commiteb49290dabd5ca317337663ff7e8b25a311b83a8 (patch)
treed5d9c6bb50bc6b5dc1804ee88ca497c8b50111ac /alc/backends/qsa.cpp
parent4555b74bd75614418032bd46836b0335229d48d4 (diff)
Remove unnecessary locks now that the mixer doesn't require one
Diffstat (limited to 'alc/backends/qsa.cpp')
-rw-r--r--alc/backends/qsa.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/alc/backends/qsa.cpp b/alc/backends/qsa.cpp
index 5ed65798..ef43e080 100644
--- a/alc/backends/qsa.cpp
+++ b/alc/backends/qsa.cpp
@@ -207,7 +207,6 @@ FORCE_ALIGN static int qsa_proc_playback(void *ptr)
const ALint frame_size = device->frameSizeFromFmt();
- std::unique_lock<PlaybackWrapper> dlock{*self};
while(!data->mKillNow.load(std::memory_order_acquire))
{
pollfd pollitem{};
@@ -215,9 +214,7 @@ FORCE_ALIGN static int qsa_proc_playback(void *ptr)
pollitem.events = POLLOUT;
/* Select also works like time slice to OS */
- dlock.unlock();
sret = poll(&pollitem, 1, 2000);
- dlock.lock();
if(sret == -1)
{
if(errno == EINTR || errno == EAGAIN)