MPMCQueue icon indicating copy to clipboard operation
MPMCQueue copied to clipboard

use of compare_exchange_weak

Open Philippe91 opened this issue 1 year ago • 1 comments

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

Philippe91 avatar Mar 03 '24 10:03 Philippe91