join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
threadpool.hpp File Reference
#include <join/condition.hpp>
#include <join/thread.hpp>
#include <functional>
#include <thread>
#include <memory>
#include <atomic>
#include <vector>
#include <deque>
Include dependency graph for threadpool.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  join::WorkerThread
 worker thread class. More...
 
class  join::ThreadPool
 thread pool class. More...
 

Namespaces

namespace  join
 

Functions

template<class InputIt , class Func >
void join::distribute (InputIt first, InputIt last, Func function)
 determine the number of threads and tasks per thread to run and execute them in parallel.
 
template<class InputIt , class Func >
void join::parallelForEach (InputIt first, InputIt last, Func function)
 parrallel for each loop.