Add status variable to threads

This commit is contained in:
wheremyfoodat 2022-09-20 03:20:51 +03:00
parent 1ac9417d50
commit 0d9088eddc
5 changed files with 20 additions and 8 deletions

View file

@ -59,7 +59,7 @@ class Kernel {
Handle makeProcess();
Handle makePort(const char* name);
Handle makeSession(Handle port);
Handle makeThread(u32 entrypoint, u32 initialSP, u32 priority, u32 id);
Handle makeThread(u32 entrypoint, u32 initialSP, u32 priority, u32 id, ThreadStatus status = ThreadStatus::Dormant);
std::optional<Handle> getPortHandle(const char* name);
void deleteObjectData(KernelObject& object);