<dec f='src/src/sys/sys/lwp.h' l='326' type='int lwp_wait(lwp_t * , lwpid_t , lwpid_t * , _Bool )'/>
<use f='src/src/sys/kern/kern_exit.c' l='649' u='c' c='exit_lwps'/>
<def f='src/src/sys/kern/kern_lwp.c' l='528' ll='698' type='int lwp_wait(struct lwp * l, lwpid_t lid, lwpid_t * departed, _Bool exiting)'/>
<doc f='src/src/sys/kern/kern_lwp.c' l='522'>/*
 * Wait for an LWP within the current process to exit.  If &apos;lid&apos; is
 * non-zero, we are waiting for a specific LWP.
 *
 * Must be called with p-&gt;p_lock held.
 */</doc>
<use f='src/src/sys/kern/sys_lwp.c' l='357' u='c' c='sys__lwp_wait'/>
