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

Function thread_suspend_check_needed

freebsd/kern/kern_thread.c:1274–1285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1272}
1273
1274bool
1275thread_suspend_check_needed(void)
1276{
1277 struct proc *p;
1278 struct thread *td;
1279
1280 td = curthread;
1281 p = td->td_proc;
1282 PROC_LOCK_ASSERT(p, MA_OWNED);
1283 return (P_SHOULDSTOP(p) || ((p->p_flag & P_TRACED) != 0 &&
1284 (td->td_dbgflags & TDB_SUSPEND) != 0));
1285}
1286
1287/*
1288 * Called in from locations that can safely check to see

Callers 2

fork_rfppwaitFunction · 0.85
thread_suspend_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected