diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-13 13:05:10 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-13 13:05:10 +0100 |
commit | d24b3806edddbfff587f1cf91a64338e0fadd48f (patch) | |
tree | 268a066d80390e9bf5e1cefbae95b81dc696eaf2 /kernel/include | |
parent | fa495da049037c356b8bb4a3a29416aeb335887c (diff) | |
download | macroscope-d24b3806edddbfff587f1cf91a64338e0fadd48f.tar.gz macroscope-d24b3806edddbfff587f1cf91a64338e0fadd48f.zip |
Terminology change : task -> thread.
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 :*/ |