summaryrefslogtreecommitdiff
path: root/src/common/detached_tasks.cpp
diff options
context:
space:
mode:
authorGravatar lat9nq2023-07-18 19:31:35 -0400
committerGravatar lat9nq2023-07-18 19:31:35 -0400
commit71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de (patch)
tree023ef7def25a0bf79ae1556fa9fc0178bf980d2b /src/common/detached_tasks.cpp
parentMerge pull request #11109 from Morph1984/net (diff)
downloadyuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.tar.gz
yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.tar.xz
yuzu-71b3b2a2f0f0ec5d0a0061d3d7ea42a1f63ae1de.zip
general: Silence -Wshadow{,-uncaptured-local} warnings
These occur in the latest commits in LLVM Clang.
Diffstat (limited to '')
-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 da64848da..f2ed795cc 100644
--- a/src/common/detached_tasks.cpp
+++ b/src/common/detached_tasks.cpp
@@ -30,8 +30,8 @@ DetachedTasks::~DetachedTasks() {
30void DetachedTasks::AddTask(std::function<void()> task) { 30void DetachedTasks::AddTask(std::function<void()> task) {
31 std::unique_lock lock{instance->mutex}; 31 std::unique_lock lock{instance->mutex};
32 ++instance->count; 32 ++instance->count;
33 std::thread([task{std::move(task)}]() { 33 std::thread([task_{std::move(task)}]() {
34 task(); 34 task_();
35 std::unique_lock thread_lock{instance->mutex}; 35 std::unique_lock thread_lock{instance->mutex};
36 --instance->count; 36 --instance->count;
37 std::notify_all_at_thread_exit(instance->cv, std::move(thread_lock)); 37 std::notify_all_at_thread_exit(instance->cv, std::move(thread_lock));