Lines Matching defs:th
251 thread_t th;
254 th = wait_queue_wakeup64_identity_locked(
261 if (th == THREAD_NULL)
270 if (th->ith_state != MACH_RCV_IN_PROGRESS) {
271 thread_unlock(th);
283 msize = ipc_kmsg_copyout_size(kmsg, th->map);
284 if (th->ith_msize <
285 (msize + REQUESTED_TRAILER_SIZE(thread_is_64bit(th), th->ith_option))) {
286 th->ith_state = MACH_RCV_TOO_LARGE;
287 th->ith_msize = msize;
288 if (th->ith_option & MACH_RCV_LARGE) {
292 th->ith_receiver_name = port_mqueue->imq_receiver_name;
293 th->ith_kmsg = IKM_NULL;
294 th->ith_seqno = 0;
295 thread_unlock(th);
299 th->ith_state = MACH_MSG_SUCCESS;
309 th->ith_kmsg = kmsg;
310 th->ith_seqno = port_mqueue->imq_seqno++;
311 thread_unlock(th);