From owner-freebsd-ports@FreeBSD.ORG Wed Nov 29 15:50:54 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 083EA16A40F for ; Wed, 29 Nov 2006 15:50:54 +0000 (UTC) (envelope-from freebsd-ports-local@be-well.ilk.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6466744033 for ; Wed, 29 Nov 2006 15:45:51 +0000 (GMT) (envelope-from freebsd-ports-local@be-well.ilk.org) Received: (qmail 16933 invoked from network); 29 Nov 2006 15:45:29 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 29 Nov 2006 15:45:28 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 5602128430; Wed, 29 Nov 2006 10:45:28 -0500 (EST) To: Mikhail Teterin References: <20061127222709.aa35ab22.nork@FreeBSD.org> <200611271114.42304@aldan> <20061129230636.aef46d92.nork@FreeBSD.org> <200611290957.26508@aldan> From: Lowell Gilbert Date: Wed, 29 Nov 2006 10:45:28 -0500 In-Reply-To: <200611290957.26508@aldan> (Mikhail Teterin's message of "Wed, 29 Nov 2006 09:57:25 -0500") Message-ID: <44irgyjlyf.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, Norikatsu Shigemura Subject: Re: ports/devel/icu: PTHREAD_LIBS clean X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2006 15:50:54 -0000 Mikhail Teterin writes: > On Wednesday 29 November 2006 09:06, Norikatsu Shigemura wrote: > =3D > but library may also be not using threads _at all_. -lm, for exampl= e, is=20 > =3D > happily used by many threaded programs without itself being thread-= aware. > =3D=20 > =3D =A0=A0=A0=A0=A0=A0=A0=A0I understand your ideal, think so too. =A0How= ever, in fact, it is > =3D =A0=A0=A0=A0=A0=A0=A0=A0unrealistic environment:-(. > > Norikatsu, this is not some unreachable ideal (libm is not). If no applic= ation=20 > is calling into a library from multiple threads in parallel, that library= =20 > need not be thread-aware. In that case, it doesn't even need to be thread-safe. libm is supposed to be thread-safe, but has no need to be thread-aware. ICU is different in that not only can it be called from multiple threads, but those threads can (in theory -- as far as I know, you're right that nobody uses this capability right now) be interacting. =20 > You are (slightly) pessimizing your installation by building a thread-awa= re=20 > ICU without having a need for it... On the other hand, that could change at any time.=20=20 Think of all the other programmers in the world as independent threads, that could use the API in new ways... ;-)