Lines Matching refs:thread
21 struct thread {
22 struct thread *queue_next; /* i.e. run queue, release queue, etc. */
42 THREAD_STATE_FREE_ON_RESCHED = 7, // free the thread structure upon reschedule
43 // THREAD_STATE_BIRTH // thread is being created
47 struct thread *head;
48 struct thread *tail;
53 thread_is_idle_thread(struct thread *thread)
55 return thread->is_idle;
58 void thread_enqueue(struct thread *t, struct thread_queue *q);
59 struct thread *thread_get_current_thread(void);
66 void arch_thread_context_switch(struct thread *t_from, struct thread *t_to);
67 void arch_thread_set_current_thread(struct thread *t);