Yes, I agree, the coverage is sparse. Under Windows you have:
InterlockedIncrement64 But it is only supported under Windows Vista and Windows Server 2003 or later. In looking at /unix/apr_atomic.c, the 32-bit operations appear to be implemented as either inline asm, or brute force using a mutex. Does it make sense to stub them out, implementing the ones that can be supported with asm or intrinsics ? /Daniel -----Original Message----- From: justin.erenkra...@gmail.com [mailto:justin.erenkra...@gmail.com] On Behalf Of Justin Erenkrantz Sent: Tuesday, January 06, 2009 11:51 AM To: Daniel May Cc: dev@apr.apache.org Subject: Re: Does apr_atomic_inc64 exist ? On Tue, Jan 6, 2009 at 7:17 AM, Daniel May <dan...@spryware.com> wrote: > I am looking for a 64-bit counterpart to apr_atomic_inc32(). Has this been > implemented ? I don't believe that we've guaranteed 64-bit atomics anywhere. I'm not sure how much underlying OS/architecture support there would generically be for 64-bit atomics... -- justin