HNHacker News
TopNewBestAskShowJobs

whiteboardma

1 karma · joined May 10, 2023

submissionscomments
whiteboardma··on A collection of lock-free data structures written in standard C++11
Wops, my bad
whiteboardma··on A collection of lock-free data structures written in standard C++11
Looking at the Push operation defined in queue_impl.hpp, if multiple threads perform concurrent pushes, they might end up writing their element to the same slot in _data since the current position _w is not incremented atomically
whiteboardma··on A collection of lock-free data structures written in standard C++11
I've only looked at the queue implementation, but both push and pop contain obvious race conditions; I would highly suggest adding tests that actually use the data structures from multiple threads.