Lines Matching defs:thread
59 * File: thread.h
126 #include <machine/thread.h>
128 struct thread {
130 * NOTE: The runq field in the thread structure has an unusual
135 * When the thread is on a wait queue, these first three fields
145 integer_t options; /* options set by thread itself */
152 decl_simple_lock_data(,wake_lock) /* for thread stop / wait (wake_lock()) */
157 * may be examined by this thread
235 thread_t thread);
319 /* Kernel holds on this thread */
325 /* Pending thread ast(s) */
340 struct thread *thread);
343 /* Ports associated with this thread */
356 uint32_t t_dtrace_predcache;/* DTrace per thread predicate value hint */
385 #define thread_reference_internal(thread) \
386 (void)hw_atomic_add(&(thread)->ref_count, 1)
388 #define thread_deallocate_internal(thread) \
389 hw_atomic_sub(&(thread)->ref_count, 1)
391 #define thread_reference(thread) \
393 if ((thread) != THREAD_NULL) \
394 thread_reference_internal(thread); \
398 thread_t thread);
403 thread_t thread);
406 thread_t thread) __attribute__ ((noinline));
409 thread_t thread);
412 thread_t thread);
415 thread_t thread);
418 thread_t thread);
428 #define thread_should_halt_fast(thread) (!(thread)->active)
431 thread_t thread);
434 thread_t thread);
440 thread_t thread);
447 thread_t thread);
450 thread_t thread,
456 thread_t thread,
462 thread_t thread,
468 thread_t thread,
473 thread_t thread);
488 thread_t thread,
492 thread_t thread);
504 thread_t thread);
507 thread_t thread);
510 thread_t thread,
516 thread_t thread,
528 thread_t thread,
531 thread_t thread);
534 thread_t thread);
537 thread_t thread);
542 thread_t thread,
555 void * fnl_mtxholder; /* thread (last)holdng mutex */
556 void * fnl_mtxrelease; /* thread (last)releasing mutex */
562 #define thread_mtx_lock(thread) mutex_lock(&(thread)->mutex)
563 #define thread_mtx_try(thread) mutex_try(&(thread)->mutex)
564 #define thread_mtx_unlock(thread) mutex_unlock(&(thread)->mutex)
569 thread_t thread);
573 thread_t thread);
584 thread_t thread);
587 thread_t thread);
646 thread_t thread,
651 thread_t thread,
655 thread_t thread,
659 thread_t thread,
663 thread_t thread,
668 thread_t thread,
676 thread_t thread);
682 thread_t thread,
686 thread_t thread,
702 thread_t thread);
723 thread_t thread,
727 thread_t thread,