Both for enqueing and dequeing, why not using compare_exchange_weak / std::memory_order_relaxed (instead of compare_exchange_strong / memory_order_seq_cst) like in Dmitry Vyukov latest implementation (2021)?
This seems to make sense, as we are in a loop.
https://drive.google.com/file/d/1uCefvM3bTnWLFrcYoMxCOKGjWwHJQM2n/view
Both for enqueing and dequeing, why not using
compare_exchange_weak / std::memory_order_relaxed(instead ofcompare_exchange_strong / memory_order_seq_cst) like in Dmitry Vyukov latest implementation (2021)?This seems to make sense, as we are in a loop.
https://drive.google.com/file/d/1uCefvM3bTnWLFrcYoMxCOKGjWwHJQM2n/view