Kernel: Allow passing a thread argument for new kernel threads

This adds the ability to pass a pointer to kernel thread/process.
Also add the ability to use a closure as thread function, which
allows passing information to a kernel thread more easily.
This commit is contained in:
Tom 2020-11-16 20:51:34 -07:00 committed by Andreas Kling
commit 6a620562cc
Notes: sideshowbarker 2024-07-19 01:08:54 +09:00
11 changed files with 68 additions and 24 deletions

View file

@ -66,7 +66,7 @@ public:
static void prepare_for_idle_loop();
static Process* colonel();
static void beep();
static void idle_loop();
static void idle_loop(void*);
static void invoke_async();
static void notify_finalizer();