A fast multi-producer, multi-consumer lock-free queue for C++11 in a single header
open sourceBSD-2-Clause OR BSL-1.0free
concurrentqueue (moodycamel::ConcurrentQueue) is a fast multi-producer, multi-consumer lock-free concurrent queue for C++11. The whole queue is one header you drop into a project, with a separate header for a low-overhead blocking version (BlockingConcurrentQueue). It supports very fast bulk enqueueing and dequeueing and producer and consumer tokens. It's dual-licensed under the Simplified BSD licence or the Boost Software License, at your choice.
Ways to install
Package managers
Problems it solves
- a fast lock-free queue to pass work between threads in C++
- multi-producer multi-consumer queue for C++11 without a mutex
- a header-only concurrent queue I can drop into my C++ project
Features
- lock-free multi-producer, multi-consumer queue
- single header, no build step
- fast bulk enqueue and dequeue
- a blocking version in its own header
Alternatives
The same job
These do what concurrentqueue (moodycamel::ConcurrentQueue) does.
- Taskflow Header-only C++ library for task-parallel programs on CPUs and GPUs
Compare concurrentqueue (moodycamel::ConcurrentQueue) with the top 3
