class
#include <nCine/Threading/ThreadPool.h>
ThreadPool Thread pool.
Base classes
- class IThreadPool
- Thread pool interface.
Constructors, destructors, conversion operators
- ThreadPool()
- Creates a thread pool with as many threads as available processors.
-
ThreadPool(std::
size_t numThreads) explicit - Creates a thread pool with a specified number of threads.
- ~ThreadPool() override
Public functions
-
void EnqueueCommand(std::
unique_ptr<IThreadCommand>&& threadCommand) override - Enqueues a command request for a worker thread.