General: Add Asserts

This commit is contained in:
Fernando Sahmkow 2020-02-28 09:42:06 -04:00
parent 04e0f8776c
commit 2a8837ff51
4 changed files with 24 additions and 0 deletions

View file

@ -182,6 +182,7 @@ private:
std::array<u32, Core::Hardware::NUM_CPU_CORES> preemption_priorities = {59, 59, 59, 62};
/// Scheduler lock mechanisms.
bool is_locked{};
std::mutex inner_lock{}; // TODO(Blinkhawk): Replace for a SpinLock
std::atomic<s64> scope_lock{};
Core::EmuThreadHandle current_owner{Core::EmuThreadHandle::InvalidHandle()};