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:12 UTC (Tue) by scottwood (subscriber, #74349)
In reply to: Swap by tialaramex
Parent article: A look at C++14: Papers Part 2

If non-atomic swap is a useful addition, why would you want to slow down swaps that don't need to be atomic by making it automatic, even if it's optional for the implementation? Atomic swap should be a specially requested operation (e.g. using compiler intrinsics), just like most other atomic operations.


(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