Building a Fast Lock-Free Queue in Modern C++ from Scratch

(blog.jaysmito.dev)

18 points | by ibobev 4 days ago

1 comments

  • rfgplk 15 minutes ago
    Nice article. There a few issues with your code however from a cursory glance; your dtor seems to allow for spurious/double frees due to custom deleter support (you wanna check up on that), you also seem to use seq_cst far too much even if not needed (you want to avoid them is queues as much as possible), lastly class FastQueueNodeSlot.. isn't aligned (plus 64b alignment is only a thing for amd64 cpus, apple silicon is larger).