LWN.net Logo

Advertisement

Our team patches and enhances the Linux kernel and promotes the adoption of Linux at Oracle. mark.wilkerson @oracle.com

Advertise here

Swap

Swap

Posted Apr 2, 2013 20:31 UTC (Tue) by wahern (subscriber, #37304)
In reply to: Swap by proski
Parent article: A look at C++14: Papers Part 2

Are there any architectures where there exists an atomic, wait-free swap between two memory locations?

I suspect that they're uncommon if not non-existent.

In any event, presumably such an operation was left out of the stdatomic.h libraries for C11 and C++11 for a reason.


(Log in to post comments)

Swap

Posted Apr 3, 2013 11:04 UTC (Wed) by heijo (guest, #88363) [Link]

Haswell CPUs with TSX.

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