Kernel: Optimize condition variable threads management.

This commit is contained in:
Fernando Sahmkow 2019-11-21 11:03:37 -04:00 committed by FernandoS27
parent 2ab41ceff4
commit 46bb609981
4 changed files with 21 additions and 24 deletions

View file

@ -8,6 +8,7 @@
#include <cstddef>
#include <list>
#include <string>
#include <unordered_map>
#include <vector>
#include "common/common_types.h"
#include "core/hle/kernel/address_arbiter.h"
@ -385,7 +386,7 @@ private:
std::list<const Thread*> thread_list;
/// List of threads waiting for a condition variable
std::list<SharedPtr<Thread>> cond_var_threads;
std::unordered_map<VAddr, std::list<SharedPtr<Thread>>> cond_var_threads;
/// System context
Core::System& system;