strat: use m_ for member variables
This commit is contained in:
1 parent
ce28591ab2
commit
a595c232b9
425 files changed
+8531
-8484
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user