core_cpu: Make Cpu scheduler instances unique_ptrs instead of shared_ptrs

This commit is contained in:
Lioncash 2018-10-15 09:25:11 -04:00
parent 59f872a8e0
commit 5484742fda
10 changed files with 50 additions and 31 deletions

View file

@ -809,7 +809,7 @@ static ResultCode SignalProcessWideKey(VAddr condition_variable_addr, s32 target
std::vector<SharedPtr<Thread>>& waiting_threads,
VAddr condvar_addr) {
const auto& scheduler = Core::System::GetInstance().Scheduler(core_index);
const auto& thread_list = scheduler->GetThreadList();
const auto& thread_list = scheduler.GetThreadList();
for (const auto& thread : thread_list) {
if (thread->GetCondVarWaitAddress() == condvar_addr)