stratosphere: use SdkMutex/SdkRecursiveMutex over Mutex
This commit is contained in:
1 parent
a4fe1bb5d8
commit
41ab4c2c68
70 files changed
+188
-645
No files matched your search
@@ -30,13 +30,13 @@ namespace ams::lmem::impl {
|
||||
public:
|
||||
explicit ScopedHeapLock(HeapHandle h) : handle(h) {
|
||||
if (this->handle->option & CreateOption_ThreadSafe) {
|
||||
os::LockMutex(std::addressof(this->handle->mutex));
|
||||
os::LockSdkMutex(std::addressof(this->handle->mutex));
|
||||
}
|
||||
}
|
||||
|
||||
~ScopedHeapLock() {
|
||||
if (this->handle->option & CreateOption_ThreadSafe) {
|
||||
os::UnlockMutex(std::addressof(this->handle->mutex));
|
||||
os::UnlockSdkMutex(std::addressof(this->handle->mutex));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user