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

Function sched_class

freebsd/kern/sched_ule.c:2307–2315  ·  view source on GitHub ↗

* Adjust the priority class of a thread. */

Source from the content-addressed store, hash-verified

2305 * Adjust the priority class of a thread.
2306 */
2307void
2308sched_class(struct thread *td, int class)
2309{
2310
2311 THREAD_LOCK_ASSERT(td, MA_OWNED);
2312 if (td->td_pri_class == class)
2313 return;
2314 td->td_pri_class = class;
2315}
2316
2317/*
2318 * Return some of the child's priority and interactivity to the parent.

Callers 5

idle_setupFunction · 0.70
ithread_createFunction · 0.70
rtp_to_priFunction · 0.70
msgring_processFunction · 0.50
create_msgring_threadFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected