PERFORCE change 119527 for review

Attilio Rao attilio at freebsd.org
Wed May 9 16:43:14 UTC 2007


2007/5/9, Garrett Cooper <yanegomi at gmail.com>:
> Fredrik Lindberg wrote:
> > Ivan Voras wrote:
> >> On 09/05/07, Fredrik Lindberg <fli at 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


More information about the p4-projects mailing list