TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
Loading...
Searching...
No Matches
tec_queue.hpp File Reference

Thread-safe queue implementation. More...

#include <cstddef>
#include <queue>
#include <mutex>
#include <condition_variable>
#include "tec/tec_def.hpp"

Go to the source code of this file.

Classes

class  tec::SafeQueue< T >
 A thread-safe queue implementation for storing and retrieving elements of type T. More...
 

Detailed Description

Thread-safe queue implementation.

This file defines a thread-safe queue class using standard library synchronization primitives for use in multi-threaded environments.

Note
Inspired by https://stackoverflow.com/questions/15278343/c11-thread-safe-queue.
Author
The Emacs Cat
Date
2025-09-17