summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/WASAPIStream.cpp
diff options
context:
space:
mode:
authorSilent <zdanio95@gmail.com>2019-08-18 12:48:19 +0200
committerSilent <zdanio95@gmail.com>2021-01-12 19:25:40 +0100
commitcb854d78328cce91804bc9e439039ee3d8f11b51 (patch)
tree7e407411146cd3787c98ac600172cdc751164dfd /Source/Core/AudioCommon/WASAPIStream.cpp
parent11c5150c168f13dca001c9217f7c27cd250fb1b4 (diff)
AudioCommon/WASAPI: Construct std::thread with invoke semantics instead of a lambda
Diffstat (limited to 'Source/Core/AudioCommon/WASAPIStream.cpp')
-rw-r--r--Source/Core/AudioCommon/WASAPIStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/WASAPIStream.cpp b/Source/Core/AudioCommon/WASAPIStream.cpp
index 7664356132..a22d369121 100644
--- a/Source/Core/AudioCommon/WASAPIStream.cpp
+++ b/Source/Core/AudioCommon/WASAPIStream.cpp
@@ -300,7 +300,7 @@ bool WASAPIStream::SetRunning(bool running)
m_need_data_event = std::move(need_data_event);
m_running.store(true, std::memory_order_relaxed);
- m_thread = std::thread([this] { SoundLoop(); });
+ m_thread = std::thread(&WASAPIStream::SoundLoop, this);
}
else
{