Talk:c/atomic/atomic compare exchange


What is the default memory order for these?

The page says that default order for the first two versions is memory_order_seq_cst. Is that what you were asking about? Nate 07:33, 24 September 2012 (PDT)

These functions are *not* volatile, they are _Atomic. _Atomic types are intended to be layout-compatible with C++ std::atomic types, and may have more padding than the non-_Atomic-qualified variants.

I am not following your comment. The first argument to these functions, in C, is a pointer to a volatile-qualified _Atomic (, so that they can accept addresses of both volatile and non-volatile _Atomic variables. --Cubbi (talk) 08:33, 30 September 2015 (PDT)