From owner-p4-projects@FreeBSD.ORG Wed May 9 16:43:14 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8779E16A46E; Wed, 9 May 2007 16:43:14 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 419D216A46C for ; Wed, 9 May 2007 16:43:14 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by mx1.freebsd.org (Postfix) with ESMTP id EEDD013C4C1 for ; Wed, 9 May 2007 16:43:13 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so261301wra for ; Wed, 09 May 2007 09:43:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=mkJ35E54VkZRUHRGedD3knTI8LVrUgKKmDHPbumqi8D09lBW6M/UTB2tnqsH0RkGZxmECfyWsN2szYp90vMrzM4VjxUTQbvMwyZG6UK+8NxwXmh7JPKAXE2fibznZkhz8g6J085wQx2g+d4uyieFl580U73PvTzy1bLN0MNcdi4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=mf0BJMxk73zphMm4Axil9rrooWyxUy5z9AoqWgxQOxyJskAOABwyCZNqlW01PAoDoNh5hWOEmFdWFHrVh6oSfv0oczC4qkWAQ6MZ/dZodK+5+ud/eJtuQfo7JW+yriwtHg9c6ODrlihOtNKLJMVA2wF7GGAdRE/HiGERLvAqzQI= Received: by 10.78.187.17 with SMTP id k17mr201854huf.1178728991130; Wed, 09 May 2007 09:43:11 -0700 (PDT) Received: by 10.78.120.4 with HTTP; Wed, 9 May 2007 09:43:11 -0700 (PDT) Message-ID: <3bbf2fe10705090943m6a8c7ceej61598f567698447@mail.gmail.com> Date: Wed, 9 May 2007 18:43:11 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Garrett Cooper" In-Reply-To: <4641F37D.50808@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> X-Google-Sender-Auth: e96efcc0b4c40edd Cc: Perforce Change Reviews , Ivan Voras , Fredrik Lindberg Subject: Re: PERFORCE change 119527 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2007 16:43:14 -0000 2007/5/9, Garrett Cooper : > Fredrik Lindberg wrote: > > Ivan Voras wrote: > >> On 09/05/07, Fredrik Lindberg 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