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

Function thread_lock_block

freebsd/kern/kern_mutex.c:956–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956struct mtx *
957thread_lock_block(struct thread *td)
958{
959 struct mtx *lock;
960
961 lock = td->td_lock;
962 mtx_assert(lock, MA_OWNED);
963 td->td_lock = &blocked_lock;
964
965 return (lock);
966}
967
968void
969thread_lock_unblock(struct thread *td, struct mtx *new)

Callers 4

sched_switchFunction · 0.85
sched_setcpuFunction · 0.85
sched_switchFunction · 0.85
sched_throwFunction · 0.85

Calls 1

mtx_assertFunction · 0.85

Tested by

no test coverage detected