You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "William A. Rowe, Jr." <wr...@apache.org> on 2003/12/04 21:40:41 UTC

Re: apr_atomic stuff... desireable to return values from more functions

At 09:23 AM 12/4/2003, gregames@apache.org wrote:
>gregames@apache.org wrote:
>
>>fwiw, I'm using gcc -O2 to get the inline attribute to kick in.  
>>Regardless of what we do with the API, we should commit the inline attribute IMO because it is a nearly free performance boost.
>
>ummm, scratch that idea...staring at gcc asm syntax and error messages for days must have cut off the flow of oxygen to my brain.  Inlining won't work in a
>library unless we go back to putting the code in header files or something similar.

I was wondering what magic you had up your sleeve :-)

There should be no problem with putting the code in the header file if it's based
on the define APR_HAS_INLINE, however.

Bill