ThreadManager class.
More...
#include <thread_pool.h>
|
const char * | name = "EngineSystem" |
|
ThreadManager class.
- Note
- By default, the number of thread is set to 2
Manages a pool of threads for concurrent task execution.
- Version
- 1.2.0
◆ ThreadManager()
ThreadManager::ThreadManager |
( |
size_t |
threads | ) |
|
|
explicit |
◆ ~ThreadManager()
ThreadManager::~ThreadManager |
( |
| ) |
|
|
overridedefault |
◆ enqueue()
template<class F , class... Args>
auto ThreadManager::enqueue |
( |
F && |
f, |
|
|
Args &&... |
args |
|
) |
| -> std::future<decltype(f(args...))> |
◆ initialize()
bool ThreadManager::initialize |
( |
| ) |
|
|
overridevirtual |
◆ shutdown()
void ThreadManager::shutdown |
( |
| ) |
|
|
overridevirtual |
◆ update()
void ThreadManager::update |
( |
double |
delta_time | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: