<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 5, 2016 at 1:12 PM, Kjetil Matheussen <span dir="ltr"><<a href="mailto:k.s.matheussen@gmail.com" target="_blank">k.s.matheussen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Control of memory ordering and atomics are officially part of the C<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and C++ languages since 2011. GCC already supported this when the ISO<br>
standards was finalized. Microsoft and Clang started supporting it in<br>
2012. So, it's been pretty much portable since 2012. This is 2016.<br>
IMHO, it's time to make use of it. :)</blockquote><div><br></div><div><br></div><div>Well, atomics are not an official part of the C standard, only the C++</div><div>standard.</div></div></div></div></blockquote><div><br></div><div>Ouch. Sorry. Wrong. C11 has stdatomic.h, but it's not included</div><div>in gcc 4.x, which is still used a lot.</div><div><br></div></div></div></div>