C++ – production ready lock-free queue or hash implementation in C++


I ve been googling quite a bit for a lock-free queue in C++. I found some code and some trials – but nothing that i was able to compile. A lock-free hash would also be welcome.

So far i have no positive answer.
There is no "production ready" library, and amazingly none of the existent libraries complies to the API of STL containers.

Best Solution

As of 1.53, boost provides a set of lock free data structures, including queues, stacks and single-producer/single-consumer queues (i.e. ring buffers).

Related Question