diff options
author | Liav A <liavalb@gmail.com> | 2020-03-14 00:59:45 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-19 15:48:00 +0100 |
commit | b4c92c24ee88183ef334a58a3b9da351015b75f0 (patch) | |
tree | ad1b5be62343bb539fd75252ced36eb8b913decd /Kernel/Scheduler.h | |
parent | b2585b3577830af0c23fe5c5cd20fa1d0d604ac5 (diff) | |
download | serenity-b4c92c24ee88183ef334a58a3b9da351015b75f0.zip |
Scheduler: Use monotonic time for blocking threads
Diffstat (limited to 'Kernel/Scheduler.h')
-rw-r--r-- | Kernel/Scheduler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Scheduler.h b/Kernel/Scheduler.h index 0aa0873211..4f28132ba3 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/UnixTypes.h> namespace Kernel { @@ -51,6 +52,7 @@ public: static void initialize(); static void timer_tick(const RegisterState&); static bool pick_next(); + static timeval time_since_boot(); static void pick_next_and_switch_now(); static void switch_now(); static bool yield(); |