neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
thread_pool.hpp File Reference
#include <neolib/neolib.hpp>
#include <atomic>
#include <memory>
#include <vector>
#include <deque>
#include <future>
#include <mutex>
#include <neolib/task/i_thread.hpp>
#include <neolib/task/task.hpp>

Go to the source code of this file.

Classes

class  neolib::thread_pool
 
struct  neolib::thread_pool::no_threads
 
struct  neolib::thread_pool::task_not_found
 

Namespaces

namespace  neolib
 

Functions

template<typename Container >
void neolib::parallel_apply (thread_pool &aThreadPool, Container &aContainer, std::function< void(typename Container::value_type &aElement)> aFunction, std::size_t aMinimumParallelismCount=0)