diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-15 14:53:01 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-15 20:15:50 +0200 |
commit | aeadbfa790b11ba859605df8a9357b960084b2a0 (patch) | |
tree | eb46f94603e38f81ccf443024357ad567d5ef15b /src/core/core_cpu.h | |
parent | core: Make CPUBarrier a unique_ptr instead of a shared_ptr (diff) | |
download | yuzu-aeadbfa790b11ba859605df8a9357b960084b2a0.tar yuzu-aeadbfa790b11ba859605df8a9357b960084b2a0.tar.gz yuzu-aeadbfa790b11ba859605df8a9357b960084b2a0.tar.bz2 yuzu-aeadbfa790b11ba859605df8a9357b960084b2a0.tar.lz yuzu-aeadbfa790b11ba859605df8a9357b960084b2a0.tar.xz yuzu-aeadbfa790b11ba859605df8a9357b960084b2a0.tar.zst yuzu-aeadbfa790b11ba859605df8a9357b960084b2a0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core_cpu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/core_cpu.h b/src/core/core_cpu.h index 68d83ac8f..3d62de7cb 100644 --- a/src/core/core_cpu.h +++ b/src/core/core_cpu.h @@ -41,8 +41,7 @@ private: class Cpu { public: - Cpu(std::shared_ptr<ExclusiveMonitor> exclusive_monitor, CpuBarrier& cpu_barrier, - std::size_t core_index); + Cpu(ExclusiveMonitor& exclusive_monitor, CpuBarrier& cpu_barrier, std::size_t core_index); ~Cpu(); void RunLoop(bool tight_loop = true); @@ -71,7 +70,7 @@ public: return core_index; } - static std::shared_ptr<ExclusiveMonitor> MakeExclusiveMonitor(std::size_t num_cores); + static std::unique_ptr<ExclusiveMonitor> MakeExclusiveMonitor(std::size_t num_cores); private: void Reschedule(); |