FreeBSD/sys/kern/sched_4bsd.c
/*
 * Arrange to reschedule if necessary, taking the priorities and
 * schedulers into account.
 */
Arrange to reschedule if necessary, taking the priorities and
schedulers into account.
Arrange to reschedule if necessary taking the priorities and schedulers into account .
static void
maybe_resched(struct thread *td)
{
	THREAD_LOCK_ASSERT(td, MA_OWNED);
	if (td->td_priority < curthread->td_priority)
		curthread->td_flags |= TDF_NEEDRESCHED;
}
static void maybe_resched ( struct thread * td ) { THREAD_LOCK_ASSERT ( td , MA_OWNED ) ; if ( td -> td_priority < curthread -> td_priority ) curthread -> td_flags |= TDF_NEEDRESCHED ; }
Arrange to reschedule if necessary, taking the priorities and
 schedulers into account.
Arrange to reschedule if necessary taking the priorities and schedulers into account .