kernel: time_manager: Protect access with a mutex.

This commit is contained in:
bunnei
2020-11-18 16:19:00 -08:00
parent 24cae76d16
commit b7ef581c6e
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