Hi!
> New m4 function tries to determine if GCC has __sync_fetch_and_or built-in
> function which performs an atomic bit-wise inclusive OR operation.

The code itself is correct, but it gets me thinking if silently using
the unsafe variant if the buildins are not available is a good idea.

Because after we add the buildins everybody would start to assume that
the library is thread safe but under certain circumstances in may not.
(Currently there is status quo and nobody has said whether it is safe or
not.)

Which will lead to situation where the likehood of the failure will
slowly increase as everybody will write the test code under an
assumption that the library is thread safe...

So we should either:

1) decleare the test library thread unsafe

2) make it thread safe for everybody

3) abort the compilation if atomic operations are not found
   (which may be possible, but we need to do a research for
    the atomic memory primitives availability)

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to