SPH
Classes
Pool.h File Reference

Simple thread pool with fixed number of threads. More...

#include "objects/containers/Array.h"
#include "objects/wrappers/Function.h"
#include "objects/wrappers/Optional.h"
#include "thread/Scheduler.h"
#include <atomic>
#include <condition_variable>
#include <queue>
#include <thread>

Go to the source code of this file.

Classes

class  Task
 Task to be executed by one of available threads. More...
 
class  ThreadPool
 Thread pool capable of executing tasks concurrently. More...
 

Detailed Description

Simple thread pool with fixed number of threads.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Pool.h.