Lines Matching refs:th
247 thread_t th;
249 th = wait_queue_wakeup64_identity_locked(
256 if (th == THREAD_NULL)
267 if (th->ith_msize <
269 REQUESTED_TRAILER_SIZE(th->ith_option)) {
270 th->ith_state = MACH_RCV_TOO_LARGE;
271 th->ith_msize = kmsg->ikm_header->msgh_size;
272 if (th->ith_option & MACH_RCV_LARGE) {
276 th->ith_kmsg = IKM_NULL;
277 th->ith_seqno = 0;
278 thread_unlock(th);
282 th->ith_state = MACH_MSG_SUCCESS;
292 th->ith_kmsg = kmsg;
293 th->ith_seqno = port_mqueue->imq_seqno++;
294 thread_unlock(th);