work-stealing-queue
work-stealing-queue copied to clipboard
A fast work-stealing queue template in C++
It would be good if the library support reverse operation such as multiple producers (ie threads) and single consumer. Is that feasable?
`_top` and `_bottom` can see their values modified by multiple threads at the same time, leading to false sharing. This can be avoided at the cost of a larger memory...
When multiple threads call push, pop, and steal of WorkStealingQueue at the same time, some data in the queue cannot be obtained due to the maintenance of _top and _bottom