aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/solaris.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/solaris.cpp
parent4555b74bd75614418032bd46836b0335229d48d4 (diff)
Remove unnecessary locks now that the mixer doesn't require one
Diffstat (limited to 'alc/backends/solaris.cpp')
-rw-r--r--alc/backends/solaris.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/alc/backends/solaris.cpp b/alc/backends/solaris.cpp
index 6823777c..d292c012 100644
--- a/alc/backends/solaris.cpp
+++ b/alc/backends/solaris.cpp
@@ -92,7 +92,6 @@ int SolarisBackend::mixerProc()
const size_t frame_step{mDevice->channelsFromFmt()};
const ALuint frame_size{mDevice->frameSizeFromFmt()};
- std::unique_lock<SolarisBackend> dlock{*this};
while(!mKillNow.load(std::memory_order_acquire) &&
mDevice->Connected.load(std::memory_order_acquire))
{
@@ -100,9 +99,7 @@ int SolarisBackend::mixerProc()
pollitem.fd = mFd;
pollitem.events = POLLOUT;
- dlock.unlock();
int pret{poll(&pollitem, 1, 1000)};
- dlock.lock();
if(pret < 0)
{
if(errno == EINTR || errno == EAGAIN)