8#include <condition_variable>
30 void addTask(
const std::function<
void()>& task);
57 std::pair<std::mutex, std::queue<std::function<void()>>>
mtxTaskQueue;
Definition: ThreadPool.h:14
std::pair< std::mutex, std::queue< std::function< void()> > > mtxTaskQueue
Definition: ThreadPool.h:57
std::vector< std::thread > vRunningThreads
Definition: ThreadPool.h:51
ThreadPool()
Definition: ThreadPool.cpp:11
std::atomic_flag bIsShuttingDown
Definition: ThreadPool.h:63
void stop()
Definition: ThreadPool.cpp:61
std::condition_variable cvNewTasks
Definition: ThreadPool.h:48
~ThreadPool()
Definition: ThreadPool.cpp:77
void processTasksThread()
Definition: ThreadPool.cpp:27
const unsigned int iMinThreadCount
Definition: ThreadPool.h:66
void addTask(const std::function< void()> &task)
Definition: ThreadPool.cpp:50