#include <WsfThreadPool.hpp>
◆ WorkerThreads
template<class Worker, class WorkerFactory = WsfThreadPool_DefaultWorkerFactor<Worker>>
| typedef std::vector<Worker*> WsfThreadPool< Worker, WorkerFactory >::WorkerThreads |
◆ WsfThreadPool()
template<class Worker, class WorkerFactory>
| WsfThreadPool< Worker, WorkerFactory >::WsfThreadPool |
( |
const WorkerFactory & | aFactory = WorkerFactory() | ) |
|
◆ ~WsfThreadPool()
template<class Worker, class WorkerFactory>
◆ AllWorkDone()
template<class Worker, class WorkerFactory>
◆ AssignWork()
template<class Worker, class WorkerFactory>
| bool WsfThreadPool< Worker, WorkerFactory >::AssignWork |
( |
size_t | aNumTasks = 0u | ) |
|
- Parameters
-
| aNumTasks | the number of threads to wake up. use zero to wake up all threads. |
◆ FindAvailableThread()
template<class Worker, class WorkerFactory>
| Worker * WsfThreadPool< Worker, WorkerFactory >::FindAvailableThread |
( |
double | aSleepTime = 0.001 | ) |
|
◆ Start()
template<class Worker, class WorkerFactory>
| void WsfThreadPool< Worker, WorkerFactory >::Start |
( |
unsigned int | aNumThreads | ) |
|
◆ Stop()
template<class Worker, class WorkerFactory>
◆ TryWaitUntilAllWorkDone()
template<class Worker, class WorkerFactory>
| bool WsfThreadPool< Worker, WorkerFactory >::TryWaitUntilAllWorkDone |
( |
double | aSecsToWait | ) |
|
◆ WaitUntilAllWorkDone()
template<class Worker, class WorkerFactory>
| void WsfThreadPool< Worker, WorkerFactory >::WaitUntilAllWorkDone |
( |
| ) |
|
The documentation for this class was generated from the following file: