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

Function thread_unblock_switch

freebsd/kern/sched_ule.c:2033–2038  ·  view source on GitHub ↗

* thread_lock_unblock() that does not assume td_lock is blocked. */

Source from the content-addressed store, hash-verified

2031 * thread_lock_unblock() that does not assume td_lock is blocked.
2032 */
2033static inline void
2034thread_unblock_switch(struct thread *td, struct mtx *mtx)
2035{
2036 atomic_store_rel_ptr((volatile uintptr_t *)&td->td_lock,
2037 (uintptr_t)mtx);
2038}
2039
2040/*
2041 * Switch threads. This function has to handle threads coming in while

Callers 1

sched_switchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected