kern_threads.c.. lock question..
David Xu
davidxu at freebsd.org
Wed May 7 16:23:09 PDT 2003
----- Original Message -----
From: "Julian Elischer" <julian at elischer.org>
To: "David Xu" <davidxu at freebsd.org>
Cc: <threads at freebsd.org>; "Daniel Eischen" <eischen at pcnet1.pcnet.com>; "John Baldwin" <jhb at freebsd.org>
Sent: Thursday, May 08, 2003 4:28 AM
Subject: Re: kern_threads.c.. lock question..
> <snip>
>
> so I think it might be safe to cut this back to:
> if (p->p_flag & P_SINGLE_EXIT) {
> PROC_LOCK(p);
> mtx_lock_spin(&sched_lock);
> thread_stopped(p);
> thread_exit();
> /* NOTREACHED */
> }
>
> certainly it would be good to get this out of the path for every KSE
> syscall.
>
I like these code.
David Xu
More information about the freebsd-threads
mailing list