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 Jan 12, 2021
1 parent 11c5150 commit cb854d7
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 @@ -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
{
Expand Down

0 comments on commit cb854d7

Please sign in to comment.