Is there a production ready lock-free queue or hash implementation in C++

RED SOFT ADAIR picture RED SOFT ADAIR · Jul 22, 2009 · Viewed 50.2k times · Source

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.

SUMMARY: 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.

Answer

Nova picture Nova · Feb 18, 2013

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).