Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
ThreadPool.hpp File Reference

ThreadPool class declaration. More...

#include "RType/Error.hpp"
#include <concepts>
#include <condition_variable>
#include <expected>
#include <functional>
#include <memory>
#include <future>
#include <mutex>
#include <queue>
#include <thread>
#include <vector>
#include "ThreadPool.tpp"
Include dependency graph for ThreadPool.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rtp::thread::ThreadPool
 ThreadPool class for managing a pool of threads. More...
 

Namespaces

namespace  rtp
 
namespace  rtp::thread
 

Detailed Description

ThreadPool class declaration.

Author
Robin Toillon

This file contains the declaration of the ThreadPool class. The class allows tasks to be enqueued and executed concurrently by a pool of worker threads. It is designed to be thread-safe by leveraging mutexes and condition variables for task management and synchronization.

Definition in file ThreadPool.hpp.