From dev-return-5696-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Sun Feb 10 17:16:29 2002 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 23509 invoked by uid 500); 10 Feb 2002 17:16:28 -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 23497 invoked from network); 10 Feb 2002 17:16:28 -0000 Message-ID: <3C66AAEE.9060301@apache.org> Date: Sun, 10 Feb 2002 09:16:30 -0800 From: Ian Holsman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8+) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: dev@apr.apache.org Subject: Atomic operations Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N hi. I would really like to get atomic operations into the APR. having atomic_add would allow nifty things like virtual-host stats, and reference counting (among others) I've noticed that linux supports them out of the box via atomic_add in NT has there version in Interlock... GCC v3 also has gcc-3.0/include/g++-v3/sparcv9-sun-solaris2.8/bits for solaris, so I'm assuming that everywhere GCC v3 has been ported it will be available. I remember the FreeBSD has something similiar so that leaves the others, which I'm sure have somthing like this. the alternative for non-native atomic support is a mutex or specifcying a --disable-smp on the command line for configure which will disable the mutex on single CPU boxes. what do you think guys?? ..Ian