From b061e729019e4a73dc79c242bc8f1929994d5177 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 18 Aug 2019 12:48:19 +0200 Subject: [PATCH] AudioCommon/WASAPI: Construct std::thread with invoke semantics instead of a lambda --- Source/Core/AudioCommon/WASAPIStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/AudioCommon/WASAPIStream.cpp b/Source/Core/AudioCommon/WASAPIStream.cpp index ec1e9b36eec7..748fa4e87dc2 100644 --- a/Source/Core/AudioCommon/WASAPIStream.cpp +++ b/Source/Core/AudioCommon/WASAPIStream.cpp @@ -301,7 +301,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 {