#include <ThreadPool.hpp>
◆ ThreadPool() [1/2]
| ThreadPool::ThreadPool |
( |
| ) |
|
|
explicit |
◆ ~ThreadPool()
| ThreadPool::~ThreadPool |
( |
| ) |
|
◆ ThreadPool() [2/2]
| Vsdk::Utils::ThreadPool::ThreadPool |
( |
const ThreadPool & |
| ) |
|
|
delete |
◆ operator=()
◆ start()
| void ThreadPool::start |
( |
size_t |
threadCount = 1 | ) |
|
◆ post()
| void ThreadPool::post |
( |
std::function< void()> |
task, |
|
|
bool |
discard = false |
|
) |
| |
Enqueue a task.
- Parameters
-
| task | The task to enqueue |
| discard | If true, if not started, the task will be discarded |
◆ shutdown()
| void ThreadPool::shutdown |
( |
bool |
waitPendingTasks = false | ) |
|
◆ isStarted()
| bool ThreadPool::isStarted |
( |
| ) |
const |