1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00
serenity/Kernel/Scheduler.h
Andreas Kling 39d2fcbbee Move the scheduler code to its own class.
This is very mechanical.
2018-11-07 22:15:02 +01:00

20 lines
428 B
C++

#pragma once
#include <AK/Assertions.h>
class Process;
extern Process* current;
class Scheduler {
public:
static void initialize();
static bool pick_next();
static void pick_next_and_switch_now();
static void switch_now();
static bool yield();
static bool context_switch(Process&);
static void prepare_for_iret_to_new_process();
static void prepare_to_modify_own_tss();
};
int sched_yield();