summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorRodrigo Locatti <rodrigo.locatti@gmail.com>2021-06-22 09:27:44 +0200
committerRodrigo Locatti <rodrigo.locatti@gmail.com>2021-06-22 09:27:44 +0200
commit1ca9a13e507ae5ba7c23b510b2dae0ab26d501fd (patch)
treee46ac457f8c36a815f2035398387f60f11149397 /src/common
parentMerge pull request #6499 from FernandoS27/we-were-on-a-break (diff)
downloadyuzu-1ca9a13e507ae5ba7c23b510b2dae0ab26d501fd.tar
yuzu-1ca9a13e507ae5ba7c23b510b2dae0ab26d501fd.tar.gz
yuzu-1ca9a13e507ae5ba7c23b510b2dae0ab26d501fd.tar.bz2
yuzu-1ca9a13e507ae5ba7c23b510b2dae0ab26d501fd.tar.lz
yuzu-1ca9a13e507ae5ba7c23b510b2dae0ab26d501fd.tar.xz
yuzu-1ca9a13e507ae5ba7c23b510b2dae0ab26d501fd.tar.zst
yuzu-1ca9a13e507ae5ba7c23b510b2dae0ab26d501fd.zip
Diffstat (limited to '')
-rw-r--r--src/common/detached_tasks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/detached_tasks.cpp b/src/common/detached_tasks.cpp
index f2b4939df..c1362631e 100644
--- a/src/common/detached_tasks.cpp
+++ b/src/common/detached_tasks.cpp
@@ -21,6 +21,8 @@ void DetachedTasks::WaitForAllTasks() {
}
DetachedTasks::~DetachedTasks() {
+ WaitForAllTasks();
+
std::unique_lock lock{mutex};
ASSERT(count == 0);
instance = nullptr;