summaryrefslogtreecommitdiff
path: root/Kernel/Scheduler.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-18 19:57:17 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-18 20:00:10 +0200
commit24dcd99e4b3a0538e12c9975b03c9cbfb7ff226e (patch)
treef104007178682a343973e9336e8867d843fa867b /Kernel/Scheduler.h
parent685556ae84036fb84a363cbb8872264e8e54dbfc (diff)
downloadserenity-24dcd99e4b3a0538e12c9975b03c9cbfb7ff226e.zip
Kernel: Add magic key combo (Alt+Shift+F12) to dump scheduler state
Pressing this combo will dump a list of all threads and their state to the debug console. This might be useful to figure out why the system is not responding.
Diffstat (limited to 'Kernel/Scheduler.h')
-rw-r--r--Kernel/Scheduler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Scheduler.h b/Kernel/Scheduler.h
index 333821c5dd..f92b0dd1b5 100644
--- a/Kernel/Scheduler.h
+++ b/Kernel/Scheduler.h
@@ -70,6 +70,7 @@ public:
static Thread& pull_next_runnable_thread();
static bool dequeue_runnable_thread(Thread&, bool = false);
static void queue_runnable_thread(Thread&);
+ static void dump_scheduler_state();
};
}