summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-05-27 02:33:55 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-06-14 00:19:22 +0200
commitc1bd602e4ce8db7b66e64c69d57fb3b8db8a8529 (patch)
treee6d7544381654e852da742a39004fdf17a79e775 /src
parentyuzu: Eliminate variable shadowing (diff)
downloadyuzu-c1bd602e4ce8db7b66e64c69d57fb3b8db8a8529.tar
yuzu-c1bd602e4ce8db7b66e64c69d57fb3b8db8a8529.tar.gz
yuzu-c1bd602e4ce8db7b66e64c69d57fb3b8db8a8529.tar.bz2
yuzu-c1bd602e4ce8db7b66e64c69d57fb3b8db8a8529.tar.lz
yuzu-c1bd602e4ce8db7b66e64c69d57fb3b8db8a8529.tar.xz
yuzu-c1bd602e4ce8db7b66e64c69d57fb3b8db8a8529.tar.zst
yuzu-c1bd602e4ce8db7b66e64c69d57fb3b8db8a8529.zip
Diffstat (limited to 'src')
-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();
}