Skip to content
Permalink
Browse files

AudioCommon/WASAPI: Construct std::thread with invoke semantics inste…

…ad of a lambda
  • Loading branch information...
CookiePLMonster committed Aug 18, 2019
1 parent e626139 commit 1c89ff7fa6444530e75767c6dc0bd053ee94bc0a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
{

0 comments on commit 1c89ff7

Please sign in to comment.
You can’t perform that action at this time.