C++ Logo

std-proposals

Advanced search

Re: atomic_swap()

From: Gašper Ažman <gasper.azman_at_[hidden]>
Date: Fri, 16 Jul 2021 19:39:07 +0100
https://en.cppreference.com/w/cpp/atomic/atomic/exchange

On Fri, Jul 16, 2021 at 7:29 PM Phil Bouchard via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> I just realized that swap() is not using the XCHG assembly instruction at
> all. Maybe adding an atomic_swap() could achieve this?
>
>
> Regards,
> --
>
> *Phil Bouchard*
> Founder & CTO
> C.: (819) 328-4743
>
> [image: Fornux Logo] <http://www.fornux.com>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2021-07-16 13:39:20