1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-29 07:26:33 -05:00

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

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()};