#include <AsyncJobQueue.hpp>
◆ Job
◆ JobArray
◆ AsyncJobQueue()
CU_API castor::AsyncJobQueue::AsyncJobQueue |
( |
size_t | count | ) |
|
|
explicit |
Constructor, initialises the pool with given threads count.
- Parameters
-
[in] | count | The threads count. |
◆ ~AsyncJobQueue()
CU_API castor::AsyncJobQueue::~AsyncJobQueue |
( |
| ) |
|
|
noexcept |
◆ finish()
CU_API void castor::AsyncJobQueue::finish |
( |
| ) |
|
Waits for all the jobs to be run, prevents any new job push, just discards them.
◆ pushJob()
CU_API void castor::AsyncJobQueue::pushJob |
( |
Job | job | ) |
|
Feeds a worker thread with the given job.
- Parameters
-
◆ reset()
CU_API void castor::AsyncJobQueue::reset |
( |
| ) |
|
Resets the queue initial state.
◆ waitAll()
CU_API void castor::AsyncJobQueue::waitAll |
( |
| ) |
|
Waits for all the jobs to be run.
The documentation for this class was generated from the following file: