You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Liviu Nicoara <li...@roguewave.com> on 2007/09/11 20:04:52 UTC

stdcxx atomics

I noticed that -- like other RW libs -- stdcxx does build the atomic ops 
sources even in ST builds although the logic in rw/_mutex.h picks up the 
vanilla implementation in 8-11 builds. Is this a mere slip?

-- 
Your fault - core dumped.


Re: stdcxx atomics

Posted by Liviu Nicoara <li...@roguewave.com>.
Martin Sebor wrote:
> Liviu Nicoara wrote:
>> I noticed that -- like other RW libs -- stdcxx does build the atomic 
>> ops sources even in ST builds although the logic in rw/_mutex.h picks 
>> up the vanilla implementation in 8-11 builds. Is this a mere slip?
> 
> Yeah, I guess it does. I've never thought about it. It would probably
> make sense to avoid compiling them if they're not used. Can you open
> an issue? (A patch would be welcome! ;-)

I might find me some time later in the week. :-) It struck me as odd as 
I do the same thing in Tools.

Liviu

-- 
Your fault - core dumped.


Re: stdcxx atomics

Posted by Martin Sebor <se...@roguewave.com>.
Liviu Nicoara wrote:
> I noticed that -- like other RW libs -- stdcxx does build the atomic ops 
> sources even in ST builds although the logic in rw/_mutex.h picks up the 
> vanilla implementation in 8-11 builds. Is this a mere slip?

Yeah, I guess it does. I've never thought about it. It would probably
make sense to avoid compiling them if they're not used. Can you open
an issue? (A patch would be welcome! ;-)

Martin