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/svc.cpp | |
| 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/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 4fdb6d429..e2cf84624 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -1661,8 +1661,8 @@ static ResultCode SignalProcessWideKey(Core::System& system, VAddr condition_var | |||
| 1661 | ASSERT(thread->GetCondVarWaitAddress() == condition_variable_addr); | 1661 | ASSERT(thread->GetCondVarWaitAddress() == condition_variable_addr); |
| 1662 | 1662 | ||
| 1663 | // liberate Cond Var Thread. | 1663 | // liberate Cond Var Thread. |
| 1664 | thread->SetCondVarWaitAddress(0); | ||
| 1665 | current_process->RemoveConditionVariableThread(thread); | 1664 | current_process->RemoveConditionVariableThread(thread); |
| 1665 | thread->SetCondVarWaitAddress(0); | ||
| 1666 | 1666 | ||
| 1667 | const std::size_t current_core = system.CurrentCoreIndex(); | 1667 | const std::size_t current_core = system.CurrentCoreIndex(); |
| 1668 | auto& monitor = system.Monitor(); | 1668 | auto& monitor = system.Monitor(); |