mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 17:10:06 +00:00
scheduler: Cleanup based on PR feedback.
This commit is contained in:
parent
ac81c02ed9
commit
8db80d8389
@ -154,7 +154,7 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
|
||||
break;
|
||||
}
|
||||
|
||||
scheduler = std::make_unique<Kernel::Scheduler>(cpu_core);
|
||||
scheduler = std::make_unique<Kernel::Scheduler>(cpu_core.get());
|
||||
gpu_core = std::make_unique<Tegra::GPU>();
|
||||
|
||||
telemetry_session = std::make_unique<Core::TelemetrySession>();
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
Scheduler::Scheduler(std::shared_ptr<ARM_Interface> cpu_core) : cpu_core(cpu_core) {}
|
||||
Scheduler::Scheduler(ARM_Interface* cpu_core) : cpu_core(cpu_core) {}
|
||||
|
||||
Scheduler::~Scheduler() {
|
||||
for (auto& thread : thread_list) {
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include "common/common_types.h"
|
||||
#include "common/thread_queue_list.h"
|
||||
@ -15,7 +14,7 @@ namespace Kernel {
|
||||
|
||||
class Scheduler final {
|
||||
public:
|
||||
Scheduler(std::shared_ptr<ARM_Interface> cpu_core);
|
||||
explicit Scheduler(ARM_Interface* cpu_core);
|
||||
~Scheduler();
|
||||
|
||||
/// Returns whether there are any threads that are ready to run.
|
||||
@ -68,7 +67,7 @@ private:
|
||||
|
||||
SharedPtr<Thread> current_thread = nullptr;
|
||||
|
||||
std::shared_ptr<ARM_Interface> cpu_core;
|
||||
ARM_Interface* cpu_core;
|
||||
};
|
||||
|
||||
} // namespace Kernel
|
||||
|
Loading…
Reference in New Issue
Block a user