class final
#include <core/thread/pool.hpp>
ThreadPool Manages a pool of threads, to which tasks can be submitted.
Constructors, destructors, conversion operators
- ThreadPool(std::size_t numThreads)
- Constructs a pool with
numThreads
, starting them immediately.
Public functions
Function documentation
cubos:: core:: thread:: ThreadPool:: ThreadPool(std::size_t numThreads)
Constructs a pool with numThreads
, starting them immediately.
Parameters | |
---|---|
numThreads | Number of threads to create. |