mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #6512 from ReinUsesLisp/wait-detached-stasks
common/detached_tasks: Wait for tasks before shutting down
This commit is contained in:
commit
d6b51e5e21
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ void DetachedTasks::WaitForAllTasks() {
|
|||
}
|
||||
|
||||
DetachedTasks::~DetachedTasks() {
|
||||
WaitForAllTasks();
|
||||
|
||||
std::unique_lock lock{mutex};
|
||||
ASSERT(count == 0);
|
||||
instance = nullptr;
|
||||
|
|
Loading…
Reference in a new issue