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

@ -62,7 +62,7 @@ Cpu::Cpu(ExclusiveMonitor& exclusive_monitor, CpuBarrier& cpu_barrier, std::size
arm_interface = std::make_unique<ARM_Unicorn>();
}
scheduler = std::make_shared<Kernel::Scheduler>(*arm_interface);
scheduler = std::make_unique<Kernel::Scheduler>(*arm_interface);
}
Cpu::~Cpu() = default;