diff options
author | Fernando S <fsahmkow27@gmail.com> | 2024-02-02 15:10:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 15:10:46 +0100 |
commit | 6baf965777145fd9c76bd06a3c140afa46a50e87 (patch) | |
tree | 52a9b8ea293bb9b378e7e662b92e9c56d1f87d4c /src/core/hle/service/psc/time/shared_memory.cpp | |
parent | Merge pull request #12845 from liamwhite/notif (diff) | |
parent | service: use const references for input raw data (diff) | |
download | yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.gz yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.bz2 yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.lz yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.xz yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.zst yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.zip |
Diffstat (limited to 'src/core/hle/service/psc/time/shared_memory.cpp')
-rw-r--r-- | src/core/hle/service/psc/time/shared_memory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/psc/time/shared_memory.cpp b/src/core/hle/service/psc/time/shared_memory.cpp index defaceebe..adef6bcd8 100644 --- a/src/core/hle/service/psc/time/shared_memory.cpp +++ b/src/core/hle/service/psc/time/shared_memory.cpp @@ -51,11 +51,11 @@ SharedMemory::SharedMemory(Core::System& system) std::memset(m_shared_memory_ptr, 0, sizeof(*m_shared_memory_ptr)); } -void SharedMemory::SetLocalSystemContext(SystemClockContext& context) { +void SharedMemory::SetLocalSystemContext(const SystemClockContext& context) { WriteToLockFreeAtomicType(&m_shared_memory_ptr->local_system_clock_contexts, context); } -void SharedMemory::SetNetworkSystemContext(SystemClockContext& context) { +void SharedMemory::SetNetworkSystemContext(const SystemClockContext& context) { WriteToLockFreeAtomicType(&m_shared_memory_ptr->network_system_clock_contexts, context); } @@ -64,7 +64,7 @@ void SharedMemory::SetSteadyClockTimePoint(ClockSourceId clock_source_id, s64 ti {time_point, clock_source_id}); } -void SharedMemory::SetContinuousAdjustment(ContinuousAdjustmentTimePoint& time_point) { +void SharedMemory::SetContinuousAdjustment(const ContinuousAdjustmentTimePoint& time_point) { WriteToLockFreeAtomicType(&m_shared_memory_ptr->continuous_adjustment_time_points, time_point); } |