diff options
author | Tom <tomut@yahoo.com> | 2020-11-16 20:51:34 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-30 13:17:02 +0100 |
commit | 6a620562cc7298c2f591a06817ff560c9ef1deac (patch) | |
tree | f163becbd40b4b4cf7058ca2ea191dec7335f1ed /Kernel/Scheduler.h | |
parent | 6cb640eebaf40acbd505bcfdb0dee8e99fb77223 (diff) | |
download | serenity-6a620562cc7298c2f591a06817ff560c9ef1deac.zip |
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.
Diffstat (limited to 'Kernel/Scheduler.h')
-rw-r--r-- | Kernel/Scheduler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Scheduler.h b/Kernel/Scheduler.h index 2afca051d8..c26fe3ac7e 100644 --- a/Kernel/Scheduler.h +++ b/Kernel/Scheduler.h @@ -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(); |