strat: use m_ for member variables
This commit is contained in:
@@ -24,18 +24,18 @@ namespace ams::mem::impl::heap {
|
||||
class CachedHeap final {
|
||||
NON_COPYABLE(CachedHeap);
|
||||
private:
|
||||
TlsHeapCache *tls_heap_cache;
|
||||
TlsHeapCache *m_tls_heap_cache;
|
||||
public:
|
||||
constexpr CachedHeap() : tls_heap_cache() { /* ... */ }
|
||||
constexpr CachedHeap() : m_tls_heap_cache() { /* ... */ }
|
||||
~CachedHeap() { this->Finalize(); }
|
||||
|
||||
ALWAYS_INLINE CachedHeap(CachedHeap &&rhs) : tls_heap_cache(rhs.tls_heap_cache) {
|
||||
rhs.tls_heap_cache = nullptr;
|
||||
ALWAYS_INLINE CachedHeap(CachedHeap &&rhs) : m_tls_heap_cache(rhs.m_tls_heap_cache) {
|
||||
rhs.m_tls_heap_cache = nullptr;
|
||||
}
|
||||
ALWAYS_INLINE CachedHeap &operator=(CachedHeap &&rhs) {
|
||||
this->Reset();
|
||||
this->tls_heap_cache = rhs.tls_heap_cache;
|
||||
rhs.tls_heap_cache = nullptr;
|
||||
m_tls_heap_cache = rhs.m_tls_heap_cache;
|
||||
rhs.m_tls_heap_cache = nullptr;
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace ams::mem::impl::heap {
|
||||
void Reset(TlsHeapCache *thc);
|
||||
TlsHeapCache *Release();
|
||||
|
||||
constexpr explicit ALWAYS_INLINE operator bool() const { return this->tls_heap_cache != nullptr; }
|
||||
constexpr explicit ALWAYS_INLINE operator bool() const { return m_tls_heap_cache != nullptr; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -33,13 +33,13 @@ namespace ams::mem::impl::heap {
|
||||
static constexpr size_t MinimumAlignment = alignof(u64);
|
||||
using DestructorHandler = void (*)(void *start, void *end);
|
||||
private:
|
||||
TlsHeapCentral *tls_heap_central;
|
||||
bool use_virtual_memory;
|
||||
u32 option;
|
||||
u8 *start;
|
||||
u8 *end;
|
||||
TlsHeapCentral *m_tls_heap_central;
|
||||
bool m_use_virtual_memory;
|
||||
u32 m_option;
|
||||
u8 *m_start;
|
||||
u8 *m_end;
|
||||
public:
|
||||
constexpr CentralHeap() : tls_heap_central(), use_virtual_memory(), option(), start(), end() { /* ... */ }
|
||||
constexpr CentralHeap() : m_tls_heap_central(), m_use_virtual_memory(), m_option(), m_start(), m_end() { /* ... */ }
|
||||
~CentralHeap() { this->Finalize(); }
|
||||
|
||||
errno_t Initialize(void *start, size_t size, u32 option);
|
||||
|
||||
Reference in New Issue
Block a user