Kernel: Scheduler can now check if tid is valid

Tid can become invalid if the thread is already terminated
This commit is contained in:
Bananymous
2023-07-27 18:34:06 +03:00
parent 7b4a2fe3d1
commit 9f75b04714
2 changed files with 24 additions and 0 deletions

View File

@@ -31,6 +31,8 @@ namespace Kernel
Thread& current_thread();
static pid_t current_tid();
static bool is_valid_tid(pid_t tid);
private:
Scheduler() = default;