sched: add helper functions for opening and resolving handles for a task

This commit is contained in:
2026-02-19 19:16:59 +00:00
parent 2b7e5368c9
commit 4c35723959
2 changed files with 122 additions and 2 deletions

View File

@@ -17,6 +17,11 @@ kern_status_t thread_object_type_init(void)
return object_type_register(&thread_type);
}
struct thread *thread_cast(struct object *obj)
{
return THREAD_CAST(obj);
}
struct thread *thread_alloc(void)
{
struct object *thread_obj = object_create(&thread_type);