diff options
author | Mai <mathew1800@gmail.com> | 2022-06-15 03:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 03:08:58 +0200 |
commit | 103997ee56ebec3f417e93ed42e3047d8005125b (patch) | |
tree | 18b81c112665f830371408599ae157fc83936a70 /src/common | |
parent | Merge pull request #8462 from liamwhite/dynarmic-profile (diff) | |
parent | externals: Update cpp-httplib to latest (diff) | |
download | yuzu-103997ee56ebec3f417e93ed42e3047d8005125b.tar yuzu-103997ee56ebec3f417e93ed42e3047d8005125b.tar.gz yuzu-103997ee56ebec3f417e93ed42e3047d8005125b.tar.bz2 yuzu-103997ee56ebec3f417e93ed42e3047d8005125b.tar.lz yuzu-103997ee56ebec3f417e93ed42e3047d8005125b.tar.xz yuzu-103997ee56ebec3f417e93ed42e3047d8005125b.tar.zst yuzu-103997ee56ebec3f417e93ed42e3047d8005125b.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/detached_tasks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/detached_tasks.cpp b/src/common/detached_tasks.cpp index c1362631e..ec31d0b88 100644 --- a/src/common/detached_tasks.cpp +++ b/src/common/detached_tasks.cpp @@ -33,9 +33,9 @@ void DetachedTasks::AddTask(std::function<void()> task) { ++instance->count; std::thread([task{std::move(task)}]() { task(); - std::unique_lock lock{instance->mutex}; + std::unique_lock thread_lock{instance->mutex}; --instance->count; - std::notify_all_at_thread_exit(instance->cv, std::move(lock)); + std::notify_all_at_thread_exit(instance->cv, std::move(thread_lock)); }).detach(); } |