diff options
author | Chris Robinson <[email protected]> | 2020-02-26 04:58:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-02-26 04:58:02 -0800 |
commit | eb49290dabd5ca317337663ff7e8b25a311b83a8 (patch) | |
tree | d5d9c6bb50bc6b5dc1804ee88ca497c8b50111ac /alc/backends/winmm.cpp | |
parent | 4555b74bd75614418032bd46836b0335229d48d4 (diff) |
Remove unnecessary locks now that the mixer doesn't require one
Diffstat (limited to 'alc/backends/winmm.cpp')
-rw-r--r-- | alc/backends/winmm.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/alc/backends/winmm.cpp b/alc/backends/winmm.cpp index 53a58d0e..a2437496 100644 --- a/alc/backends/winmm.cpp +++ b/alc/backends/winmm.cpp @@ -182,16 +182,13 @@ FORCE_ALIGN int WinMMPlayback::mixerProc() const size_t frame_step{mDevice->channelsFromFmt()}; - std::unique_lock<WinMMPlayback> dlock{*this}; while(!mKillNow.load(std::memory_order_acquire) && mDevice->Connected.load(std::memory_order_acquire)) { ALsizei todo = mWritable.load(std::memory_order_acquire); if(todo < 1) { - dlock.unlock(); mSem.wait(); - dlock.lock(); continue; } @@ -422,16 +419,13 @@ int WinMMCapture::captureProc() { althrd_setname(RECORD_THREAD_NAME); - std::unique_lock<WinMMCapture> dlock{*this}; while(!mKillNow.load(std::memory_order_acquire) && mDevice->Connected.load(std::memory_order_acquire)) { ALuint todo{mReadable.load(std::memory_order_acquire)}; if(todo < 1) { - dlock.unlock(); mSem.wait(); - dlock.lock(); continue; } |