os: refactor/rewrite entire namespace.

This commit is contained in:
Michael Scire committed 2020-04-08 02:21:35 -07:00
1 parent 6193283f03
commit 065485b971
181 files changed
+5353 -1929

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) {
this->handle->mutex.Lock();
os::LockMutex(std::addressof(this->handle->mutex));
}
}
~ScopedHeapLock() {
if (this->handle->option & CreateOption_ThreadSafe) {
this->handle->mutex.Unlock();
os::UnlockMutex(std::addressof(this->handle->mutex));
}
}
};