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

Function thread_stash

freebsd/kern/kern_thread.c:570–575  ·  view source on GitHub ↗

* Release a thread that has exited after cpu_throw(). */

Source from the content-addressed store, hash-verified

568 * Release a thread that has exited after cpu_throw().
569 */
570void
571thread_stash(struct thread *td)
572{
573 atomic_subtract_rel_int(&td->td_proc->p_exitthreads, 1);
574 thread_zombie(td);
575}
576
577/*
578 * Reap zombies from passed domain.

Callers 2

fork_exitFunction · 0.85
mi_switchFunction · 0.85

Calls 1

thread_zombieFunction · 0.85

Tested by

no test coverage detected