kernel: time_manager: Protect access with a mutex.

This commit is contained in:
bunnei 2020-11-18 16:19:00 -08:00
parent 05ff3e467e
commit 64cb411dda
2 changed files with 5 additions and 1 deletions

View file

@ -5,6 +5,7 @@
#pragma once
#include <memory>
#include <mutex>
#include <unordered_map>
#include "core/hle/kernel/object.h"
@ -42,6 +43,7 @@ private:
Core::System& system;
std::shared_ptr<Core::Timing::EventType> time_manager_event_type;
std::unordered_map<Handle, bool> cancelled_events;
std::mutex mutex;
};
} // namespace Kernel