MCPcopy Create free account
hub / github.com/F-Stack/f-stack / maybe_resched

Function maybe_resched

freebsd/kern/sched_4bsd.c:304–311  ·  view source on GitHub ↗

* Arrange to reschedule if necessary, taking the priorities and * schedulers into account. */

Source from the content-addressed store, hash-verified

302 * schedulers into account.
303 */
304static void
305maybe_resched(struct thread *td)
306{
307
308 THREAD_LOCK_ASSERT(td, MA_OWNED);
309 if (td->td_priority < curthread->td_priority)
310 curthread->td_flags |= TDF_NEEDRESCHED;
311}
312
313/*
314 * This function is called when a thread is about to be put on run queue

Callers 3

resetpriority_threadFunction · 0.85
sched_addFunction · 0.85
sched_4bsd.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected