From eb49290dabd5ca317337663ff7e8b25a311b83a8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 26 Feb 2020 04:58:02 -0800 Subject: Remove unnecessary locks now that the mixer doesn't require one --- alc/backends/qsa.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'alc/backends/qsa.cpp') 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 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) -- cgit v1.2.3