Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Sep 1997 23:28:51 -0700 (PDT)
From:      Julian Elischer <julian@whistle.com>
To:        hackers@freebsd.org
Subject:   addition to queue.h?
Message-ID:  <Pine.BSF.3.95.970920232132.6362A-100000@current1.whistle.com>

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

I have a queue-type that I would personally like to see in queue.h
basically a headless circle queue.

the point is that if you have several cases of a structure which are
siblings in some respect. I get a pointer to one of them, and wish to
examine the rest of them. If I just go around the circle till I get back
to my original entry, then I can do what I want, but in the current
CIRCLEQ macro set, I also need to have a place where I 'ground' the queue
with a CIRCLEQ_HEAD entry. As I showed before, this may not be what I
want. Possibly just the addition of a few simple macro's might 
extend the CIRCLEQ type to cover this case, with more ease.. any
suggestions?

julian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970920232132.6362A-100000>