apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <mt...@apache.org>
Subject RE: [PATCH] Updated atomic API
Date Fri, 19 Sep 2003 06:32:40 GMT


> -----Original Message-----
> From: Brian Pane
> 
> Changes not yet made:
>   - Removal of the old API (I saw two comments in favor
>     of this, including my own; I'll wait for an official
>     3 +1s and no -1s before I start deleting stuff)
>   - Return values for the add, subtract, and inc functions
>     (I haven't figured out a way to implement these
>     efficiently)
> 
> Brian
> 
> 

I have a patch (send It back in April) that enable to use the atomic
from C++ on WIN32.
The problem is the fact that C++ distinguishes unsigned int and LONG
mixage as an error.

Unlike the other platforms for WIN32 the apr_atomic_t is 'typedefed' so
later in the header it is reverted from LONG to apr_uint32_t, so the
IntelockedXX functions gets apr_uint32_t as a param, and C++ reports
that as an error.

The patch simply #defines the apr_atomic_t as LONG.

MT.




Mime
View raw message