mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Scheduler: Use monotonic time for blocking threads
This commit is contained in:
parent
b2585b3577
commit
b4c92c24ee
2 changed files with 10 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue