Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Sep 2004 11:19:32 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/share/man/man9 kthread.9
Message-ID:  <200409271119.32409.jhb@FreeBSD.org>
In-Reply-To: <20040924225503.D96751@uriah.heep.sax.de>
References:  <200409241958.i8OJwm8Y051147@repoman.freebsd.org> <200409241633.06963.jhb@FreeBSD.org> <20040924225503.D96751@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409271119.32409.jhb>