AudioCommon/WASAPI: Construct std::thread with invoke semantics instead of a lambda

This commit is contained in:
Silent 2019-08-18 12:48:19 +02:00
parent 11c5150c16
commit cb854d7832
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1

View File

@ -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
{