Lines Matching defs:th
76 void *get_bsdthreadtask_info(thread_t th)
78 return(th->task != TASK_NULL ? th->task->bsd_info : NULL);
92 void *get_bsdthread_info(thread_t th)
94 return(th->uthread);
319 task_t get_threadtask(thread_t th)
321 return(th->task);
429 thread_t th)
431 return(th->user_stop_count);
439 thread_t th)
441 return ((th->sched_mode & TH_MODE_ISABORTED) == TH_MODE_ABORT);
456 thread_t th = current_thread();
459 if ((th->sched_mode & TH_MODE_ISABORTED) == TH_MODE_ABORT &&
460 (th->options & TH_OPT_INTMASK) != THREAD_UNINT)
462 if (th->sched_mode & TH_MODE_ABORTSAFELY) {
464 thread_lock(th);
465 if (th->sched_mode & TH_MODE_ABORTSAFELY)
466 th->sched_mode &= ~TH_MODE_ISABORTED;
467 thread_unlock(th);