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

Function thread_lock_block_wait

freebsd/kern/kern_mutex.c:979–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977}
978
979void
980thread_lock_block_wait(struct thread *td)
981{
982
983 while (td->td_lock == &blocked_lock)
984 cpu_spinwait();
985
986 /* Acquire fence to be certain that all thread state is visible. */
987 atomic_thread_fence_acq();
988}
989
990void
991thread_lock_set(struct thread *td, struct mtx *new)

Callers 4

propagate_priorityFunction · 0.85
turnstile_unpendFunction · 0.85
sleepq_resume_threadFunction · 0.85
tdq_moveFunction · 0.85

Calls 1

atomic_thread_fence_acqFunction · 0.50

Tested by

no test coverage detected