diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-06-21 20:02:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-21 20:02:40 +0200 |
| commit | 8b9ac5d767fa1076b10691b3dc8d4ac59033cd47 (patch) | |
| tree | f8e79dd04f35677dffa60340bc096d88e94560b6 /Source/Core/AudioCommon/AlsaSoundStream.cpp | |
| parent | 5728ebf7ad303594132d6361fe99c8de782bf72e (diff) | |
| parent | 1d8b1715ab9ba7ac028ccf06859f4ca15f955351 (diff) | |
Merge pull request #12800 from Tilka/unused_result
AudioCommon: release mutex explicitly to avoid -Wunused-result warning
Diffstat (limited to 'Source/Core/AudioCommon/AlsaSoundStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/AlsaSoundStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/AudioCommon/AlsaSoundStream.cpp b/Source/Core/AudioCommon/AlsaSoundStream.cpp index 5645efa58b..b9e817331c 100644 --- a/Source/Core/AudioCommon/AlsaSoundStream.cpp +++ b/Source/Core/AudioCommon/AlsaSoundStream.cpp @@ -20,7 +20,7 @@ AlsaSound::~AlsaSound() m_thread_status.store(ALSAThreadStatus::STOPPING); // Immediately lock and unlock mutex to prevent cv race. - std::unique_lock<std::mutex>{cv_m}; + std::unique_lock<std::mutex>{cv_m}.unlock(); // Give the opportunity to the audio thread // to realize we are stopping the emulation @@ -82,7 +82,7 @@ bool AlsaSound::SetRunning(bool running) m_thread_status.store(running ? ALSAThreadStatus::RUNNING : ALSAThreadStatus::PAUSED); // Immediately lock and unlock mutex to prevent cv race. - std::unique_lock<std::mutex>{cv_m}; + std::unique_lock<std::mutex>{cv_m}.unlock(); // Notify thread that status has changed cv.notify_one(); |
