summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-06-15 03:08:58 +0200
committerGitHub <noreply@github.com>2022-06-15 03:08:58 +0200
commit103997ee56ebec3f417e93ed42e3047d8005125b (patch)
tree18b81c112665f830371408599ae157fc83936a70 /src/common
parentMerge pull request #8462 from liamwhite/dynarmic-profile (diff)
parentexternals: Update cpp-httplib to latest (diff)
downloadyuzu-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.cpp4
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();
}