cvs commit: src/share/man/man9 kthread.9

John Baldwin jhb at FreeBSD.org
Mon Sep 27 11:55:43 PDT 2004


On Friday 24 September 2004 04:55 pm, Joerg Wunsch wrote:
> As John Baldwin wrote:
> > It's not the thread handle, it's the proc pointer:
> >
> >         /*
> >          * If this is a kthread, then wakeup anyone waiting for it to
> > exit. */
> >         if (p->p_flag & P_KTHREAD)
> >                 wakeup(p);
>
> Isn't that the "thread handle" in case the proc is actually a thread?

No, the thread handle would be 'wakeup(curthread)' or some such.  We don't 
currently have any multithreaded "kthreads" (they are really kernel processes 
right now, not threads) so this works for some value of work for now.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the cvs-src mailing list