Lines Matching defs:th
74 void *get_bsdthreadtask_info(thread_t th)
76 return(th->task != TASK_NULL ? th->task->bsd_info : NULL);
90 void *get_bsdthread_info(thread_t th)
92 return(th->uthread);
98 int get_thread_lock_count(thread_t th); /* forced forward */
99 int get_thread_lock_count(thread_t th)
101 return(th->mutex_count);
349 task_t get_threadtask(thread_t th)
351 return(th->task);
459 thread_t th)
461 return(th->user_stop_count);
489 thread_t th)
491 return ((th->sched_flags & TH_SFLAG_ABORTED_MASK) == TH_SFLAG_ABORT);
506 thread_t th = current_thread();
509 if ((th->sched_flags & TH_SFLAG_ABORTED_MASK) == TH_SFLAG_ABORT &&
510 (th->options & TH_OPT_INTMASK) != THREAD_UNINT)
512 if (th->sched_flags & TH_SFLAG_ABORTSAFELY) {
514 thread_lock(th);
515 if (th->sched_flags & TH_SFLAG_ABORTSAFELY)
516 th->sched_flags &= ~TH_SFLAG_ABORTED_MASK;
517 thread_unlock(th);