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

Reply via email to