Skip to content

Instantly share code, notes, and snippets.

@thelinked
thelinked / LockingQueue.hpp
Last active May 28, 2025 11:22
C++11 blocking queue using the standard library.
#pragma once
#include <queue>
#include <mutex>
#include <condition_variable>
template<typename T>
class LockingQueue
{
public:
void push(T const& _data)