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

ThreadPool class implementation. More...

#include "RType/Assert.hpp"
#include "RType/Logger.hpp"
#include "RType/Thread/ThreadPool.hpp"
#include <format>
#include <exception>
Include dependency graph for ThreadPool.cpp:

Go to the source code of this file.

Namespaces

namespace  rtp
 
namespace  rtp::thread
 

Detailed Description

ThreadPool class implementation.

Author
Robin Toillon

This file contains the implementation of the ThreadPool class. The ThreadPool class manages a pool of worker threads that can execute tasks asynchronously. Tasks can be enqueued to the pool, and the worker threads will process them concurrently. The class ensures thread-safe access to the task queue using mutexes and condition variables.

Definition in file ThreadPool.cpp.