Liste des Groupes | Revenir à cl c |
On 12/15/2024 2:49 AM, Thiago Adams wrote:[...]Em 12/15/2024 1:39 AM, Chris M. Thomasson escreveu:On 12/14/2024 7:05 PM, Thiago Adams wrote:
The atomic exchange allows one to get at the previous object or word in the atomic anchor. God, it's been a long time. 2005 I remember being on this group, comp.programming.threads, before it got nuked with spam... Yikes!Yes this conversion is not implemented yet.Yes. atomic_exchange is an atomic RMW. Iirc, it defaults to seq_cst memory_order. atomic_exchange_explicit allows us to define a different memory_order.
>
Is
atomic_exchange(&foo.bar.m_atomic, 42);
>
The generated code for
foo.bar.m_atomic = 42;
?
I may look this at future.Cool. :^)
Les messages affichés proviennent d'usenet.