apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: Does apr_atomic_inc64 exist ?
Date Tue, 06 Jan 2009 18:58:35 GMT
Daniel May wrote:
> 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 ?
>

+1, even a stubbed out mutex version would be nice, we can always 
optimize to asm or platform stuff in a later patch release.

-Paul

Mime
View raw message