LWN.net Logo

Toward generic atomic operations

Toward generic atomic operations

Posted Aug 2, 2012 7:42 UTC (Thu) by jcm (subscriber, #18262)
In reply to: Toward generic atomic operations by kev009
Parent article: Toward generic atomic operations

Good points. The intention here is not to advocate for "proprietary extensions", but on some level I'm saying that if a project relies upon GCC, it's worth just considering using their existing atomics rather than re-implementing the wheel with inline assembly. An preferred alternative is to use an existing library, but that is not always possible. I just reviewed some of the Fedora ARM codebase for inline assembly and this kind of stuff showed up way more than I expected. It's something that needs fixing. I hope C11 is quickly adopted as means to do so.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds