From owner-svn-src-all@FreeBSD.ORG Sun May 23 13:15:16 2010 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D744106566C; Sun, 23 May 2010 13:15:16 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail08.syd.optusnet.com.au (mail08.syd.optusnet.com.au [211.29.132.189]) by mx1.freebsd.org (Postfix) with ESMTP id BD8B98FC12; Sun, 23 May 2010 13:15:15 +0000 (UTC) Received: from c122-107-114-249.carlnfd1.nsw.optusnet.com.au (c122-107-114-249.carlnfd1.nsw.optusnet.com.au [122.107.114.249]) by mail08.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o4NDF9Mh024179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 23 May 2010 23:15:13 +1000 Date: Sun, 23 May 2010 23:15:09 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Poul-Henning Kamp In-Reply-To: <11069.1274618175@critter.freebsd.dk> Message-ID: <20100523230410.K17698@delplex.bde.org> References: <11069.1274618175@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Bruce Evans Subject: Re: svn commit: r208332 - in head/sys: amd64/include i386/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2010 13:15:16 -0000 On Sun, 23 May 2010, Poul-Henning Kamp wrote: > In message <20100523183502.C13588@delplex.bde.org>, Bruce Evans writes: >> On Thu, 20 May 2010, Poul-Henning Kamp wrote: > >> should be kernel-only. > > No, it absolutely should not, if anything, it should be pushed as > international standards (with , and ). > > Atomic operations and write barriers are necessary when multiple > threads or processes cooperate using shared memory. and if anything > the bug is that POSIX has not updated pthreads to have these and > other necessary primitives. (pthread_mutex_assert_held() for instance). Pehraps, but was only designed, implemented and documented for use in the kernel. And of course any standardized version won't look like the FreeBSD kernel one. The kernel one is too bloated for me, but a general-purpose one should be even more bloated so as to support all types and more than atomic ops. Bruce