apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject apr_atomic_cas() interface
Date Tue, 15 Apr 2003 18:42:54 GMT
why is it

apr_uint32_t apr_atomic_cas(volatile apr_uint32_t *, long, long)
(generic version)

apr_uint32_t apr_atomic_cas(volatile apr_atomic_t *, apr_uint32_t,
                             apr_uint32_t cmp)
(MVS version)

instead of

apr_uint32_t apr_atomic_cas(volatile apr_uint32_t *, apr_uint32_t,


The MVS version just has a typographical difference to what is needed 
(apr_atomic_t vs. apr_uint32_t, which are the same).  The generic 
version is broken where long is 64-bit.

Is there some reason why "long" was chosen for the 2nd and 3rd parameters.

View raw message