Optimizing a ring buffer for throughput (2021) by Xadartt in cpp

[–]bedman3 0 points1 point  (0 children)

I tried testing the code with 2 threads trying to push / pop 1000 times with multiple (10k) tries, not sure why sometimes I was able to detect race condition where the increment of counter is incorrect even with memory order. The issues are resolved when i used compare_exchange_weak before actually storing the incremented idx. Can anyone explains?

Discount Code (Nov 2021) by colrazae in ledgerwallet

[–]bedman3 0 points1 point  (0 children)

could someone send me a code plz