flâneur — a map of the web's best reading

Modern C++: Writing a thread-safe Queue – Code Trips & Tips

codetrips.com · 1,889 words · saved by 1 readers

The STL provides a high-performance queue class in std::queue ; however, the API is not very intuitive, or easy, to use and it is not safe to access from multiple threads.In this article, w…

Modern C++: Writing a thread-safe Queue &#8211; Code Trips & Tips Skip to content Coding Modern C++: Writing a thread-safe Queue The STL provides a high-performance queue class in std::queue<T>; however, the API is not very intuitive, or easy, to use and it is not safe to access from multiple threads.In this article, we will show how to wrap it in a more convenient, and thread-safe, API. The C++ Standard Template Library (STL) offers a template-class&hellip; Marco July 26, 2020 6–9 minutes The STL provides a high-performance queue class in std::queue<T> ; however, the API is not very intuitive

Explore this link on the map →

related reading