Re: C++11 atomic library notes

2011-10-02 Thread Marc Glisse
On Sat, 1 Oct 2011, Andrew MacLeod wrote: On 10/01/2011 02:55 AM, Marc Glisse wrote: "The compiler must ensure that for any given object, it either ALWAYS inlines lock free routines, OR calls the external routines. For any given object, these cannot be intermixed." Why? You give an example

Re: C++11 atomic library notes

2011-10-02 Thread Andrew MacLeod
On Sat, 1 Oct 2011, Andrew MacLeod wrote: Ah ok, I had understood: * if __atomic_store_8 is inlined on line 18, it should also be inlined on line 42 when instead it is: * we can't have a locked addition and a lock-free subtraction (hence the __atomic_is_lock_free which only takes a size a