Lines Matching defs:thread
75 #include <kern/thread.h>
328 thread_t thread;
363 * Create the idle processor thread.
379 * If there is no active thread, the processor
381 * start up thread.
385 result = kernel_thread_create((thread_continue_t)processor_start_thread, NULL, MAXPRI_KERNEL, &thread);
397 thread_lock(thread);
398 thread->bound_processor = processor;
399 processor->next_thread = thread;
400 thread->state = TH_RUN;
401 thread_unlock(thread);
404 thread_deallocate(thread);
765 thread_t thread, *thread_list = (thread_t *)addr;
767 for (thread = (thread_t)queue_first(&threads);
768 !queue_end(&threads, (queue_entry_t)thread);
769 thread = (thread_t)queue_next(&thread->threads)) {
770 thread_reference_internal(thread);
771 thread_list[actual++] = thread;