Comment Comment by rigtorp Here's my widely used implementation of this approach in C++: https://github.com/rigtorp/MPMCQueue parent rigtorp 4 months ago