summaryrefslogtreecommitdiff
path: root/Kernel/Scheduler.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-06-28 15:34:31 -0600
committerAndreas Kling <kling@serenityos.org>2020-07-01 12:07:01 +0200
commit16783bd14d5284542205a50c441562c19174f101 (patch)
tree433c7802b5d8dcb0d2bfe0da8f25dbc5145d6ddf /Kernel/Scheduler.h
parentcdc78515b6e12f6bf8b62cf311d8dde12e191cbd (diff)
downloadserenity-16783bd14d5284542205a50c441562c19174f101.zip
Kernel: Turn Thread::current and Process::current into functions
This allows us to query the current thread and process on a per processor basis
Diffstat (limited to 'Kernel/Scheduler.h')
-rw-r--r--Kernel/Scheduler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Scheduler.h b/Kernel/Scheduler.h
index 7ed8642caf..bec0d27b89 100644
--- a/Kernel/Scheduler.h
+++ b/Kernel/Scheduler.h
@@ -30,6 +30,7 @@
#include <AK/Function.h>
#include <AK/IntrusiveList.h>
#include <AK/Types.h>
+#include <Kernel/SpinLock.h>
#include <Kernel/UnixTypes.h>
namespace Kernel {
@@ -41,12 +42,12 @@ struct RegisterState;
struct SchedulerData;
extern Thread* g_finalizer;
-extern Thread* g_colonel;
extern WaitQueue* g_finalizer_wait_queue;
extern Atomic<bool> g_finalizer_has_work;
extern u64 g_uptime;
extern SchedulerData* g_scheduler_data;
extern timeval g_timeofday;
+extern RecursiveSpinLock g_scheduler_lock;
class Scheduler {
public: