FreeBSD/sys/kern/kern_umtx.c
/*
 * Insert a PI mutex into owned list.
 */
Insert a PI mutex into owned list.
Insert a PI mutex into owned list .
static void
umtx_pi_setowner(struct umtx_pi *pi, struct thread *owner)
{
	struct umtx_q *uq_owner;
	uq_owner = owner->td_umtxq;
	mtx_assert(&umtx_lock, MA_OWNED);
	if (pi->pi_owner != NULL)
		panic("pi_owner != NULL");
	pi->pi_owner = owner;
	TAILQ_INSERT_TAIL(&uq_owner->uq_pi_contested, pi, pi_link);
}
static void umtx_pi_setowner ( struct umtx_pi * pi , struct thread * owner ) { struct umtx_q * uq_owner ; uq_owner = owner -> td_umtxq ; mtx_assert ( & umtx_lock , MA_OWNED ) ; if ( pi -> pi_owner != NULL ) panic ( " " ) ; pi -> pi_owner = owner ; TAILQ_INSERT_TAIL ( & uq_owner -> uq_pi_contested , pi , pi_link ) ; }
Insert a PI mutex into owned list.
Insert a PI mutex into owned list .