Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
FixedSizeThreadPool.h File Reference
#include <cstddef>
#include <vector>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <queue>
#include <functional>

Go to the source code of this file.

Classes

class  ph::FixedSizeThreadPool
 A thread pool where works are accessed concurrently by blocking other threads. A thread pool that contains fixed number of threads for work processing. It is a blocking pool, i.e., works are enqueued and dequeued concurrently by blocking other threads, in FIFO order. The pool can be used concurrently, namely, it is thread-safe. However, the user must ensure that the pool is properly initialized before subsequent usages. More...
 

Namespaces

namespace  ph
 The root for all renderer implementations.