57 explicit ThreadPool(std::string poolName,
int numThreads = 5,
58 int sleepTime = 100,
int checkInterval = 300);
77 void addJob(std::function<
void()> newJob);
106 std::queue<std::function<void()>> m_JobQueue;
112 std::mutex & getMutex();
121 #endif // THREADPOOL_H ThreadPool()
ThreadPool constructor.
Definition: threadpool.cpp:9
glass3::util::ThreadPool class
Definition: threadpool.h:31
int getJobQueueSize()
Retrieve the current number of jobs in the queue.
Definition: threadpool.cpp:80
The neic-glass3 project namespace containing all the classes and functions that make up neic-glass3...
WorkState
glass3::util::WorkState enumeration
Definition: workstate.h:25
void addJob(std::function< void()> newJob)
add a new job for for the thread pool to process
Definition: threadpool.cpp:25
glass3::util::WorkState work() override
ThreadBaseClass work function.
Definition: threadpool.cpp:36
~ThreadPool()
ThreadPool destructor.
Definition: threadpool.cpp:21
glass3::util::ThreadBaseClass class
Definition: threadbaseclass.h:34