diff options
Diffstat (limited to 'kernel/include')
-rw-r--r-- | kernel/include/thread.h (renamed from kernel/include/task.h) | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/include/task.h b/kernel/include/thread.h index 0faa8b3..03277a2 100644 --- a/kernel/include/task.h +++ b/kernel/include/thread.h @@ -17,7 +17,7 @@ typedef struct saved_context { void (*eip)(); } saved_context_t; -typedef struct task { +typedef struct thread { saved_context_t ctx; pagedir_t *current_pd_d; @@ -29,19 +29,19 @@ typedef struct task { void* more_data; - struct task *next_in_queue; -} task_t; + struct thread *next_in_queue; +} thread_t; typedef void (*entry_t)(void*); -void tasking_setup(entry_t cont, void* data); // never returns -task_t *new_task(entry_t entry); // task is PAUSED, and must be resume_task_with_result'ed +void threading_setup(entry_t cont, void* data); // never returns +thread_t *new_thread(entry_t entry); // thread is PAUSED, and must be resume_thread_with_result'ed -extern task_t *current_task; +extern thread_t *current_thread; void yield(); void* wait_for_result(); -void resume_task_with_result(task_t *task, void* data, bool run_at_once); +void resume_thread_with_result(thread_t *thread, void* data, bool run_at_once); /* vim: set ts=4 sw=4 tw=0 noet :*/ |