Skip to content

Commit

Permalink
AudioCommon/WASAPI: Construct std::thread with invoke semantics inste…
Browse files Browse the repository at this point in the history
…ad of a lambda
  • Loading branch information
CookiePLMonster committed Mar 17, 2020
1 parent e3dbbb4 commit 654616f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/AudioCommon/WASAPIStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 654616f

Please sign in to comment.