Date: Tue, 2 Jul 2002 10:05:57 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Matthew Dillon <dillon@apollo.backplane.com> Cc: Daniel Eischen <eischen@pcnet1.pcnet.com>, Jonathan Lemon <jlemon@flugsvamp.com>, iedowse@maths.tcd.ie, current@FreeBSD.ORG Subject: Re: KSE status report Message-ID: <Pine.BSF.4.21.0207021004480.97411-100000@InterJet.elischer.org> In-Reply-To: <200207021629.g62GT0iN052159@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I put the -1 under the conditional
so it should be 'gone' now.
we'll see it makes a difference.
On Tue, 2 Jul 2002, Matthew Dillon wrote:
>
> :...
> :another queue using the same link. There are other places in libc_r
> :where we do re-use the same link (remove from one list and add to
> :another), but roll our own loop in that case:
> :
> : for (p = TAILQ_FIRST(&q); p != NULL; p = p_next) {
> : p_next = TAILQ_NEXT(p, p_qe);
> : ...
> : TAILQ_REMOVE(&q, pthread, p_qe);
> : ...
> : }
> :
> :--
> :Dan Eischen
>
> Why don't we simply conditionalize sys/queue.h for the _KERNEL
>
> -Matt
> Matthew Dillon
> <dillon@backplane.com>
>
> Index: sys/sys/queue.h
> ===================================================================
> RCS file: /home/ncvs/src/sys/sys/queue.h,v
> retrieving revision 1.50
> diff -u -r1.50 queue.h
> --- sys/sys/queue.h 29 Jun 2002 19:16:10 -0000 1.50
> +++ sys/sys/queue.h 2 Jul 2002 16:28:24 -0000
> @@ -102,7 +102,11 @@
> * _REMOVE + + + +
> *
> */
> -#define QUEUE_MACRO_DEBUG 0
> +#ifdef _KERNEL
> +#define QUEUE_MACRO_DEBUG 0 /* change this for kernel debugging */
> +#else
> +#define QUEUE_MACRO_DEBUG 0 /* leave alone for userland compatibility */
> +#endif
> #if QUEUE_MACRO_DEBUG
> /* Store the last 2 places the queue element or head was altered */
> struct qm_trace {
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207021004480.97411-100000>
