os: adopt nintendo ReaderWriter naming over ReadWrite

This commit is contained in:
Michael Scire
2021-10-01 11:42:34 -07:00
parent 00d0c94f2d
commit 2b37e5d486
21 changed files with 183 additions and 183 deletions

View File

@@ -20,7 +20,7 @@
namespace ams::os::impl {
#if defined(ATMOSPHERE_OS_HORIZON)
class ReadWriteLockHorizonImpl;
class ReaderWriterLockHorizonImpl;
#endif
class InternalConditionVariableImpl;
@@ -28,7 +28,7 @@ namespace ams::os::impl {
class InternalCriticalSectionImpl {
private:
#if defined(ATMOSPHERE_OS_HORIZON)
friend class ReadWriteLockHorizonImpl;
friend class ReaderWriterLockHorizonImpl;
#endif
friend class InternalConditionVariableImpl;

View File

@@ -20,16 +20,16 @@
#if defined(ATMOSPHERE_OS_HORIZON)
#include <stratosphere/os/impl/os_internal_rw_busy_mutex_impl.os.horizon.hpp>
#else
#error "Unknown OS for ams::os::impl::InternalReadWriteBusyMutexImpl"
#error "Unknown OS for ams::os::impl::InternalReaderWriterBusyMutexImpl"
#endif
namespace ams::os::impl {
class InternalReadWriteBusyMutex {
class InternalReaderWriterBusyMutex {
private:
InternalReadWriteBusyMutexImpl m_impl;
InternalReaderWriterBusyMutexImpl m_impl;
public:
constexpr InternalReadWriteBusyMutex() : m_impl() { /* ... */ }
constexpr InternalReaderWriterBusyMutex() : m_impl() { /* ... */ }
ALWAYS_INLINE void AcquireReadLock() { return m_impl.AcquireReadLock(); }
ALWAYS_INLINE void ReleaseReadLock() { return m_impl.ReleaseReadLock(); }
@@ -38,6 +38,6 @@ namespace ams::os::impl {
ALWAYS_INLINE void ReleaseWriteLock() { return m_impl.ReleaseWriteLock(); }
};
using InternalReadWriteBusyMutexStorage = util::TypedStorage<InternalReadWriteBusyMutex>;
using InternalReaderWriterBusyMutexStorage = util::TypedStorage<InternalReaderWriterBusyMutex>;
}

View File

@@ -19,11 +19,11 @@
namespace ams::os::impl {
class InternalReadWriteBusyMutexImpl {
class InternalReaderWriterBusyMutexImpl {
private:
u32 m_value;
public:
constexpr InternalReadWriteBusyMutexImpl() : m_value(0) { /* ... */ }
constexpr InternalReaderWriterBusyMutexImpl() : m_value(0) { /* ... */ }
constexpr void Initialize() { m_value = 0; }