diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-09-25 16:04:53 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-09-25 16:04:56 -0400 |
| commit | 598e4d2f6ccfc3dc774a28be53d8b1d78ebbd08d (patch) | |
| tree | 1d43801463284752d6ecec43c9a1e7850caef607 /src/core/core_cpu.h | |
| parent | a58eefa7e42f156e4a9efead04c6d814286c2f10 (diff) | |
core_cpu: Make arm_interface instances a std::unique_ptr
This is only exposed by reference, so we can just make it a unique
pointer to get rid of the need to also use reference counting for the
pointer.
Diffstat (limited to 'src/core/core_cpu.h')
| -rw-r--r-- | src/core/core_cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h index 685532965..ee7e04abc 100644 --- a/src/core/core_cpu.h +++ b/src/core/core_cpu.h @@ -76,7 +76,7 @@ public: private: void Reschedule(); - std::shared_ptr<ARM_Interface> arm_interface; + std::unique_ptr<ARM_Interface> arm_interface; std::shared_ptr<CpuBarrier> cpu_barrier; std::shared_ptr<Kernel::Scheduler> scheduler; |
