mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-28 13:44:11 -04:00
strat: use m_ for member variables
This commit is contained in:
parent
ce28591ab2
commit
a595c232b9
425 changed files with 8531 additions and 8484 deletions
|
@ -26,17 +26,17 @@ namespace ams::lmem::impl {
|
|||
NON_COPYABLE(ScopedHeapLock);
|
||||
NON_MOVEABLE(ScopedHeapLock);
|
||||
private:
|
||||
HeapHandle handle;
|
||||
HeapHandle m_handle;
|
||||
public:
|
||||
explicit ScopedHeapLock(HeapHandle h) : handle(h) {
|
||||
if (this->handle->option & CreateOption_ThreadSafe) {
|
||||
os::LockSdkMutex(std::addressof(this->handle->mutex));
|
||||
explicit ScopedHeapLock(HeapHandle h) : m_handle(h) {
|
||||
if (m_handle->option & CreateOption_ThreadSafe) {
|
||||
os::LockSdkMutex(std::addressof(m_handle->mutex));
|
||||
}
|
||||
}
|
||||
|
||||
~ScopedHeapLock() {
|
||||
if (this->handle->option & CreateOption_ThreadSafe) {
|
||||
os::UnlockSdkMutex(std::addressof(this->handle->mutex));
|
||||
if (m_handle->option & CreateOption_ThreadSafe) {
|
||||
os::UnlockSdkMutex(std::addressof(m_handle->mutex));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue