yuzu: Resolve C++20 deprecation warnings related to lambda captures

C++20 deprecates capturing the this pointer via the '=' capture.
Instead, we replace it or extend the capture specification.
This commit is contained in:
Lioncash 2020-08-03 11:28:18 -04:00
parent 9b75481755
commit b249e4e0ce
9 changed files with 88 additions and 81 deletions

View file

@ -548,8 +548,8 @@ private:
// Wait the current thread until a buffer becomes available
ctx.SleepClientThread(
"IHOSBinderDriver::DequeueBuffer", UINT64_MAX,
[=](std::shared_ptr<Kernel::Thread> thread, Kernel::HLERequestContext& ctx,
Kernel::ThreadWakeupReason reason) {
[=, this](std::shared_ptr<Kernel::Thread> thread,
Kernel::HLERequestContext& ctx, Kernel::ThreadWakeupReason reason) {
// Repeat TransactParcel DequeueBuffer when a buffer is available
const auto guard = nv_flinger->Lock();
auto& buffer_queue = nv_flinger->FindBufferQueue(id);