Simple Blocking/Nonblocking Concurrent (thread-safe) Queue Adapter, header only library

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

JetBrains - Tell us how you use coding tools. You may win a prize!
Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
surveys.jetbrains.com
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
  1. moodycamel

    A fast multi-producer, multi-consumer lock-free concurrent queue for C++11

    I needed a concurrent queue that would block when attempting to pop an empty queue, which allows the consuming thread to suspend while it's waiting for work. I found that using mutexes allowed me to develop a simple template adapter had several advantages with few drawbacks when compared to non-blocking queues: it can use a variety of containers, the code can be reviewed and verified as to its correctness (very hard to do with fancy concurrent programming that avoids mutexes), and it is only slightly slower than fancier solutions (when I benchmarked it originally, it was 4x slower than Moody Camel's concurrent queue, which to me is fine performance).

  2. JetBrains

    Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!

    JetBrains logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Concurrency kills ordering. But there's a fix (3 Go patterns compared)

    2 projects | news.ycombinator.com | 1 Sep 2025
  • Scar - A programming language for easy concurrency and parallelism

    1 project | dev.to | 6 Aug 2025
  • Show HN: Sidequest.js – Background jobs for Node.js using your database

    3 projects | news.ycombinator.com | 4 Aug 2025
  • Async Ruby is the Future of AI Apps (And It's Already Here)

    2 projects | dev.to | 9 Jul 2025
  • Abstraction boundaries are optimization boundaries

    2 projects | news.ycombinator.com | 1 Jul 2025

Did you know that C++ is
the 7th most popular programming language
based on number of references?