From owner-cvs-all Fri Oct 6 0:54:26 2000 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id C696337B66D; Fri, 6 Oct 2000 00:54:19 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id SAA09342; Fri, 6 Oct 2000 18:54:07 +1100 Date: Fri, 6 Oct 2000 18:54:02 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Mark Murray Cc: John Baldwin , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/include atomic.h src/sys/i386/include atomic.h In-Reply-To: <200010060559.e965xe715446@grimreaper.grondar.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 6 Oct 2000, Mark Murray wrote: > > jhb 2000/10/05 15:19:50 PDT > > > > Modified files: > > sys/alpha/include atomic.h > > sys/i386/include atomic.h > > Log: > > Add atomic_readandclear_int and atomic_readandclear_long. > > I also need atomic_set_pointer(9). Would you be interested in writing that? Just assume that accesses to pointers are atomic until we support a machine where they aren't. Supporting such machines would be hard. There must be thousands of places in the kernel where atomic accesses to pointers need to be atomic, abd millions of places that might need such atomic accesses (every pointer access). When we support these, we will probably also support atomic_set_char(), etc ;-) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message