mesosphere: Add convenience KScopedCriticalSection

This commit is contained in:
Michael Scire
2018-11-05 03:47:15 -08:00
parent 9b1fb0c6df
commit 600afa5f0f
4 changed files with 16 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ void KMutex::lock_slow_path(KThread &owner, KThread &requester)
void KMutex::unlock_slow_path(KThread &owner)
{
std::lock_guard criticalSection{KScheduler::GetCriticalSection()};
KScopedCriticalSection critical_section;
size_t count;
KThread *newOwner = owner.RelinquishMutex(&count, (uiptr)this);
native_handle_type newTag;