From dev-return-10704-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Tue Dec 02 20:39:57 2003 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 77895 invoked from network); 2 Dec 2003 20:39:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Dec 2003 20:39:57 -0000 Received: (qmail 58034 invoked by uid 500); 2 Dec 2003 20:39:45 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 58001 invoked by uid 500); 2 Dec 2003 20:39:45 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 57988 invoked from network); 2 Dec 2003 20:39:45 -0000 Message-ID: <3FCCF81D.7030303@attglobal.net> Date: Tue, 02 Dec 2003 15:37:49 -0500 From: Jeff Trawick Reply-To: trawick@attglobal.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@apr.apache.org Subject: Re: apr_atomic stuff... planning to move all implementation out of the header file References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Greg Marr wrote: > On Tue, 02 Dec 2003 13:27:18 -0500 > Jeff Trawick wrote: > >> I finally remembered I was supposed to be doing this when I had some >> free time. >> >> Comments? Anybody want to (help me) fix anything before I commit > > > +APR_DECLARE(void) apr_atomic_add32(volatile apr_uint32_t *mem, > apr_uint32_t val) > +{ > + atomic_add((unsigned long *)(mem),(unsigned long)(val)); > +} > + > > Now that these aren't macros, you can lose the extra parens. thanks, will-do :)