Merge pull request #4323 from ReinUsesLisp/no-spin

kernel/scheduler: Use std::mutex instead of spin lock
This commit is contained in:
bunnei 2020-09-11 23:23:53 -07:00 committed by GitHub
commit 5fc6bf96d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ private:
/// Scheduler lock mechanisms.
bool is_locked{};
Common::SpinLock inner_lock{};
std::mutex inner_lock;
std::atomic<s64> scope_lock{};
Core::EmuThreadHandle current_owner{Core::EmuThreadHandle::InvalidHandle()};