Lines Matching refs:thread
32 struct thread* GetThread() { return &fThread; }
40 struct thread fThread;
58 struct thread* CurrentThread()
60 void SetCurrentThread(struct thread* thread)
61 { fCurrentThread = thread->object; }
100 memset(&fThread, 0, sizeof(struct thread));
129 : Thread("idle thread", B_IDLE_PRIORITY)
227 thread_enqueue(struct thread *t, struct thread_queue *q)
232 struct thread *
255 arch_thread_context_switch(struct thread *t_from, struct thread *t_to)
261 arch_thread_set_current_thread(struct thread *thread)
264 //printf("[%ld] %p %s\n", cpu->Index(), thread, thread->name);
265 return cpu->SetCurrentThread(thread);
335 add_thread(Thread* thread)
338 sThreads.AddItem(thread);
339 scheduler_enqueue_in_run_queue(thread->GetThread());