scheduler: Protect scheduling functions with a global mutex.

This commit is contained in:
bunnei 2018-05-07 22:12:45 -04:00
parent e6671190a5
commit 91af2f94e8
2 changed files with 18 additions and 0 deletions

View file

@ -4,6 +4,7 @@
#pragma once
#include <mutex>
#include <vector>
#include "common/common_types.h"
#include "common/thread_queue_list.h"
@ -68,6 +69,8 @@ private:
SharedPtr<Thread> current_thread = nullptr;
ARM_Interface* cpu_core;
static std::mutex scheduler_mutex;
};
} // namespace Kernel