A glorified thread pool.
More...
#include <Jobs.hpp>
|
| JobSystem ()=delete |
| delete default constructor
|
|
| JobSystem (size_t num_threads) |
|
void | Stop () |
| Stop the running threads after they finish their current job.
|
|
void | AddJob (func job) |
|
◆ JobSystem()
Engine::JobSystem::JobSystem |
( |
size_t |
num_threads | ) |
|
|
inline |
Constructor
- Parameters
-
num_threads | the number of worker threads to use |
- See also
- MAX_JOB_THREADS
◆ AddJob()
void Engine::JobSystem::AddJob |
( |
func |
job | ) |
|
|
inline |
Add a job to the queue
- Parameters
-
The documentation for this class was generated from the following file: