diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 9844e8f936..40f02a6262 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -179,12 +179,12 @@ void Process::InsertConditionVariableThread(std::shared_ptr thread) { void Process::RemoveConditionVariableThread(std::shared_ptr thread) { VAddr cond_var_addr = thread->GetCondVarWaitAddress(); - std::list>& thread_list = cond_var_threads[cond_var_addr]; - auto it = thread_list.begin(); - while (it != thread_list.end()) { + std::list>& convar_thread_list = cond_var_threads[cond_var_addr]; + auto it = convar_thread_list.begin(); + while (it != convar_thread_list.end()) { const std::shared_ptr current_thread = *it; if (current_thread.get() == thread.get()) { - thread_list.erase(it); + convar_thread_list.erase(it); return; } ++it; @@ -194,9 +194,9 @@ void Process::RemoveConditionVariableThread(std::shared_ptr thread) { std::vector> Process::GetConditionVariableThreads( const VAddr cond_var_addr) { std::vector> result{}; - std::list>& thread_list = cond_var_threads[cond_var_addr]; - auto it = thread_list.begin(); - while (it != thread_list.end()) { + std::list>& convar_thread_list = cond_var_threads[cond_var_addr]; + auto it = convar_thread_list.begin(); + while (it != convar_thread_list.end()) { std::shared_ptr current_thread = *it; result.push_back(current_thread); ++it;