• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching refs:th

132 static void workqueue_run_nextitem(proc_t p, thread_t th);
133 static void wq_runitem(proc_t p, user_addr_t item, thread_t th, struct threadlist *tl,
135 static int setup_wqthread(proc_t p, thread_t th, user_addr_t item, int reuse_thread, struct threadlist *tl);
798 thread_t th;
825 kret = thread_create(ctask, &th);
828 thread_reference(th);
830 sright = (void *) convert_thread_to_port(th);
898 thread_set_wq_state64(th, (thread_state_t)ts64);
900 thread_set_cthreadself(th, (uint64_t)th_pthread, isLP64);
923 thread_set_wq_state32(th, (thread_state_t)ts);
941 thread_set_wq_state64(th, (thread_state_t)ts64);
959 thread_policy_set(th, THREAD_EXTENDED_POLICY, (thread_policy_t)&extinfo, THREAD_EXTENDED_POLICY_COUNT);
963 thread_policy_set(th, THREAD_PRECEDENCE_POLICY, (thread_policy_t)&precedinfo, THREAD_PRECEDENCE_POLICY_COUNT);
966 kret = thread_resume(th);
971 thread_deallocate(th); /* drop the creator reference */
984 (void)thread_terminate(th);
985 (void)thread_deallocate(th);
1350 thread_t th;
1358 kret = thread_create(wq->wq_task, &th);
1398 (void) thread_terminate(th);
1404 thread_reference(th);
1406 sright = (void *) convert_thread_to_port(th);
1409 thread_static_param(th, TRUE);
1420 tl->th_thread = th;
1427 thread_set_cthreadself(th, (uint64_t)(tl->th_stackaddr + PTH_DEFAULT_STACKSIZE + PTH_DEFAULT_GUARDSIZE), IS_64BIT_PROCESS(p));
1436 (void)thread_affinity_set(th, affinity_tag + 1);
1437 thread_sched_call(th, workqueue_callback);
1548 thread_t th = THREAD_NULL;
1588 th = current_thread();
1603 workqueue_run_nextitem(p, th);
1960 wq_runitem(proc_t p, user_addr_t item, thread_t th, struct threadlist *tl,
1965 KERNEL_DEBUG1(0xefffd004 | DBG_FUNC_START, (int)current_thread(), (int)item, wake_thread, tl->th_affinity_tag, (int)th);
1967 ret = setup_wqthread(p, th, item, reuse_thread, tl);
1978 KERNEL_DEBUG1(0xefffd018 | DBG_FUNC_END, (int)current_thread(), 0, 0, 0, (int)th);
1982 KERNEL_DEBUG1(0xefffd014 | DBG_FUNC_END, (int)current_thread(), 0, 0, 0, (int)th);
1984 thread_resume(th);
1990 setup_wqthread(proc_t p, thread_t th, user_addr_t item, int reuse_thread, struct threadlist *tl)
2012 thread_set_wq_state64(th, (thread_state_t)ts64);
2037 thread_set_wq_state32(th, (thread_state_t)ts);
2056 thread_set_wq_state64(th, (thread_state_t)ts64);