Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2007 18:43:11 +0200
From:      "Attilio Rao" <attilio@freebsd.org>
To:        "Garrett Cooper" <yanegomi@gmail.com>
Cc:        Perforce Change Reviews <perforce@freebsd.org>, Ivan Voras <ivoras@gmail.com>, Fredrik Lindberg <fli@shapeshifter.se>
Subject:   Re: PERFORCE change 119527 for review
Message-ID:  <3bbf2fe10705090943m6a8c7ceej61598f567698447@mail.gmail.com>
In-Reply-To: <4641F37D.50808@gmail.com>
References:  <200705082229.l48MTrbh069129@repoman.freebsd.org> <20070509070626.GA41419@freebsd.org> <4641818B.4030507@FreeBSD.org> <20070509103404.D71759@fledge.watson.org> <464199D9.7020908@shapeshifter.se> <9bbcef730705090710h653dc15bjb7a1159484c1c48b@mail.gmail.com> <4641E19F.80809@shapeshifter.se> <4641F37D.50808@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2007/5/9, Garrett Cooper <yanegomi@gmail.com>:
> Fredrik Lindberg wrote:
> > Ivan Voras wrote:
> >> On 09/05/07, Fredrik Lindberg <fli@shapeshifter.se> wrote:
> >>
> >>> Ok, I'll take a look at the various queue.h shipped with the major BSDs,
> >>> and see if I can find a common subset that suits my needs (without too
> >>> many compromises) and based on the findings I'll reconsider my choice.
> >>
> >> I use sys/queue.h in my userland applications all the time, there's no
> >> problem there.
> >>
> >
> > And it works on {Net,Open}BSD?, I could swear that I've been bitten by
> > sys/queue.h in the past when moving stuff between FreeBSD and NetBSD.
> > Could have been those TAILQ-macros Robert Watson talked about though.
> >
> > Fredrik Lindberg
>
> It may work with programs under normal conditions but are the queues
> guaranteed to work with thread sychronization and other non-simple
> conditions? I'd think that the FreeBSD queue is closer to that.

They are not intended to deal with syncronization matters since they
have to be the most general possible.
However, sys/queue.h should be pretty portable to Net, Open and DragonFly.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3bbf2fe10705090943m6a8c7ceej61598f567698447>