1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:57:44 +00:00

Scheduler: Use monotonic time for blocking threads

This commit is contained in:
Liav A 2020-03-14 00:59:45 +02:00 committed by Andreas Kling
parent b2585b3577
commit b4c92c24ee
2 changed files with 10 additions and 4 deletions

View file

@ -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();