|
Audaspace 1.7.0
A high level audio library.
|
This represents pool of threads. More...
#include <ThreadPool.h>
Public Member Functions | |
| ThreadPool (unsigned int count) | |
| Creates a new ThreadPool object. | |
| template<class T, class... Args> | |
| auto | enqueue (T &&t, Args &&... args) |
| Enqueues a new task for the threads to realize. | |
| unsigned int | getNumOfThreads () |
| Retrieves the number of threads of the pool. | |
This represents pool of threads.
| ThreadPool::ThreadPool | ( | unsigned int | count | ) |
Creates a new ThreadPool object.
| count | The number of threads of the pool. It must not be 0. |
|
inline |
Enqueues a new task for the threads to realize.
| t | A function that realices a task. |
| args | The arguments of the task. |
| unsigned int ThreadPool::getNumOfThreads | ( | ) |
Retrieves the number of threads of the pool.