diff options
| author | 2019-11-21 11:03:37 -0400 | |
|---|---|---|
| committer | 2019-11-21 11:13:29 -0400 | |
| commit | 46bb6099814a6ff404d337164ced016ec04ea7b9 (patch) | |
| tree | 2ea68335bff35e36fa0999cef430ca022ecaae43 /src/core/hle/kernel/process.h | |
| parent | Kernel: Correct SignalProcessWideKey (diff) | |
| download | yuzu-46bb6099814a6ff404d337164ced016ec04ea7b9.tar.gz yuzu-46bb6099814a6ff404d337164ced016ec04ea7b9.tar.xz yuzu-46bb6099814a6ff404d337164ced016ec04ea7b9.zip | |
Kernel: Optimize condition variable threads management.
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index e8bff709b..e2eda26b9 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include <cstddef> | 8 | #include <cstddef> |
| 9 | #include <list> | 9 | #include <list> |
| 10 | #include <string> | 10 | #include <string> |
| 11 | #include <unordered_map> | ||
| 11 | #include <vector> | 12 | #include <vector> |
| 12 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |
| 13 | #include "core/hle/kernel/address_arbiter.h" | 14 | #include "core/hle/kernel/address_arbiter.h" |
| @@ -385,7 +386,7 @@ private: | |||
| 385 | std::list<const Thread*> thread_list; | 386 | std::list<const Thread*> thread_list; |
| 386 | 387 | ||
| 387 | /// List of threads waiting for a condition variable | 388 | /// List of threads waiting for a condition variable |
| 388 | std::list<SharedPtr<Thread>> cond_var_threads; | 389 | std::unordered_map<VAddr, std::list<SharedPtr<Thread>>> cond_var_threads; |
| 389 | 390 | ||
| 390 | /// System context | 391 | /// System context |
| 391 | Core::System& system; | 392 | Core::System& system; |