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

Function thread_lock_unblock

freebsd/kern/kern_mutex.c:968–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966}
967
968void
969thread_lock_unblock(struct thread *td, struct mtx *new)
970{
971
972 mtx_assert(new, MA_OWNED);
973 KASSERT(td->td_lock == &blocked_lock,
974 ("thread %p lock %p not blocked_lock %p",
975 td, td->td_lock, &blocked_lock));
976 atomic_store_rel_ptr((volatile void *)&td->td_lock, (uintptr_t)new);
977}
978
979void
980thread_lock_block_wait(struct thread *td)

Callers 1

sched_setcpuFunction · 0.85

Calls 1

mtx_assertFunction · 0.85

Tested by

no test coverage detected