Lines Matching defs:th
78 void *get_bsdthreadtask_info(thread_t th)
80 return(th->task != TASK_NULL ? th->task->bsd_info : NULL);
94 void *get_bsdthread_info(thread_t th)
96 return(th->uthread);
102 int get_thread_lock_count(thread_t th); /* forced forward */
103 int get_thread_lock_count(thread_t th)
105 return(th->mutex_count);
385 task_t get_threadtask(thread_t th)
387 return(th->task);
495 thread_t th)
497 return(th->user_stop_count);
525 thread_t th)
527 return ((th->sched_flags & TH_SFLAG_ABORTED_MASK) == TH_SFLAG_ABORT);
542 thread_t th = current_thread();
545 if ((th->sched_flags & TH_SFLAG_ABORTED_MASK) == TH_SFLAG_ABORT &&
546 (th->options & TH_OPT_INTMASK) != THREAD_UNINT)
548 if (th->sched_flags & TH_SFLAG_ABORTSAFELY) {
550 thread_lock(th);
551 if (th->sched_flags & TH_SFLAG_ABORTSAFELY)
552 th->sched_flags &= ~TH_SFLAG_ABORTED_MASK;
553 thread_unlock(th);