Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2003 07:26:13 +0800
From:      "David Xu" <davidxu@freebsd.org>
To:        "Julian Elischer" <julian@elischer.org>
Cc:        John Baldwin <jhb@freebsd.org>
Subject:   Re: kern_threads.c..  lock question..
Message-ID:  <003701c314f0$0dbad340$0701a8c0@tiger>
References:  <Pine.BSF.4.21.0305071319450.47162-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message -----=20
From: "Julian Elischer" <julian@elischer.org>
To: "David Xu" <davidxu@freebsd.org>
Cc: <threads@freebsd.org>; "Daniel Eischen" <eischen@pcnet1.pcnet.com>; =
"John Baldwin" <jhb@freebsd.org>
Sent: Thursday, May 08, 2003 4:28 AM
Subject: Re: kern_threads.c.. lock question..

> <snip>
>=20
> so I think it might be safe to cut this back to:
>         if (p->p_flag & P_SINGLE_EXIT) { =20
>                 PROC_LOCK(p);
>                 mtx_lock_spin(&sched_lock);
>                 thread_stopped(p);
>                 thread_exit();
>                 /* NOTREACHED */
>         }
>=20
> certainly it would be good to get this out of the path for every KSE
> syscall.
>=20

I like these code.

David Xu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003701c314f0$0dbad340$0701a8c0>