dreamos82 / Dreamos64

My experiments with osdev... again
160 stars 8 forks source link

Task updates #135

Closed dreamos82 closed 2 years ago

dreamos82 commented 2 years ago

Add new field for task_threads.

There will be two pointers: next that are used by the scheduler to pick the next thread to execute, and next_sibling will contain the next thread within the same task.

Made functions to handle add_thread to task, get_task

Add parent reference to create_thread, if not null it will be added to the specified task.