apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel May <Dan...@spryware.com>
Subject RE: Does apr_atomic_inc64 exist ?
Date Tue, 06 Jan 2009 18:49:15 GMT
Yes, I agree, the coverage is sparse.

Under Windows you have:


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 ?


-----Original Message-----
From: justin.erenkrantz@gmail.com [mailto:justin.erenkrantz@gmail.com] On Behalf Of Justin
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 <Daniel@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

View raw message