:...
: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 
                                        <[EMAIL PROTECTED]>

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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to