From owner-freebsd-arch@FreeBSD.ORG Sun Dec 18 16:15:05 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A6881065673; Sun, 18 Dec 2011 16:15:05 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id E590D8FC14; Sun, 18 Dec 2011 16:15:04 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id CEE6A2A28CD0; Sun, 18 Dec 2011 17:15:03 +0100 (CET) Date: Sun, 18 Dec 2011 17:15:03 +0100 From: Ed Schouten To: Jilles Tjoelker Message-ID: <20111218161503.GG1771@hoeg.nl> References: <20111216214913.GA1771@hoeg.nl> <20111216220914.GW50300@deviant.kiev.zoral.com.ua> <20111216221959.GB1771@hoeg.nl> <20111216223126.GX50300@deviant.kiev.zoral.com.ua> <20111218132742.GA52983@stack.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vhOf6eAHdfH9MSjZ" Content-Disposition: inline In-Reply-To: <20111218132742.GA52983@stack.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Kostik Belousov , threads@freebsd.org, arch@freebsd.org Subject: Re: [Patch] C1X threading support X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Dec 2011 16:15:05 -0000 --vhOf6eAHdfH9MSjZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Jilles, * Jilles Tjoelker , 20111218 14:27: > Another idea is to implement the functions as static inline (with the > possible exception of thrd_create() and perhaps some more). This > pollutes the namespace of C1x programs with pthread_* though. Hmmm... Indeed. This would change the entire C1X threading API simply into a compile-time translation mechanism to pthreads. Unfortunately, it would make things like debugging a bit harder, as placing breakpoints on the functions become a bit harder. Are there any objections to such an approach? --=20 Ed Schouten WWW: http://80386.nl/ --vhOf6eAHdfH9MSjZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJO7hGHAAoJEG5e2P40kaK7XOsP/Rdn46756oot1DgWAvmLDGt8 pC2RhmwqU73w4vo9I3mRErTrbpQ398FUKMd/gouE4oqu4nOqVO/Hws2NjzmynWjv uldqrVQ1dSrS0qNrSuo9SP1D5dAdZkoa1DjS19Fp4eyxk5ipS9ZvG2oaWe8mrWto xiFLYFzAUUFOC3p+V+94vScziL+gyraQQZchfuSUkZHTQfBagmCfkMIxw6mACVpy 6y20xAKtyyPcfc76BesUHts/Tpx3vjPbMrrVP5yAJRtWRLDaDkfyn6+UhwGs3la5 rks+2saHfvtbAK3S6mHo1MReoQgfu7fy0OHzD6QzhIcwhbHyPWJHiX8lvkXVapJG 8dlEEFWQZNIKJB1+dEwVYWRGRNvXllxrxiuOvElnFSX8OONWCn8iSEnFKSP/+EWG L0n0Z5NNujHDewJ4LUpnZcad8Y8ck9w+FTy+WrF3SbXz7b+DC5Kd6ZFRWd+FMGUv epBgyeDo5q9dduvdaY2eNBQ6KjtOFvmGXo97eCh8laZt8IjNG33EoTQw+OF5zMup ZccnP2v8KbaQ286w6N8T4545Mn/qUi/KHtGzBCTIDrWq8ekWH4oWNyUzedaXE31R smm5XPNARFdbf3j6HFkS2JHZ4aU53ipS9BKg+gbHtRRYWHR24/FQ7FDLDazH1rpK kt5legthEuTkBZ3EH7eJ =lmo/ -----END PGP SIGNATURE----- --vhOf6eAHdfH9MSjZ--