Skip to content

Glossary: C++ Beyond the Basics

BlockingQueue

Also written: blocking queue

The project's thread-safe queue class template: `pop()` sleeps until an item arrives, and `close()` wakes every waiter so `pop()` returns `std::nullopt` once the queue is empty.

Where the book teaches it

Related terms

Condition variableThread-safestd::optional