Kernel: Add basic concept of Processes

We now create Shell as a process that has its own threads
This commit is contained in:
2023-03-16 12:17:04 +02:00
parent c012822d49
commit 1b7625581d
11 changed files with 170 additions and 48 deletions

View File

@@ -21,11 +21,11 @@ namespace Kernel
void set_current_thread_sleeping(uint64_t);
[[noreturn]] void set_current_thread_done();
BAN::RefPtr<Thread> current_thread();
private:
Scheduler() = default;
BAN::RefPtr<Thread> current_thread();
void wake_threads();
[[nodiscard]] bool save_current_thread();
void remove_and_advance_current_thread();