You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jeff Trawick <tr...@attglobal.net> on 2003/11/17 00:28:04 UTC

apr_atomic stuff... too darn hard to get more than compare-and-swap to work everywhere

Why not get apr_atomic_cas32 to work everywhere and have portable functions 
that use that?



Re: apr_atomic stuff... too darn hard to get more than compare-and-swap to work everywhere

Posted by Jeff Trawick <tr...@attglobal.net>.
Jeff Trawick wrote:

> Why not get apr_atomic_cas32 to work everywhere and have portable 
> functions that use that?

Heck no says dreid (or something to that affect).

I forgot to look at some of our inlined assembler that performs the arithmetic 
operations directly, and also assumed, true or false, that the pseudo-functions 
we use on some platforms use compare-and-swap under the covers anyway.