![]() |
Lysa
0.0
Lysa 3D Engine
|
A pool of asynchronous tasks executed in background worker threads.
Public Member Functions | |
| AsyncTasksPool (size_t threadCount) | |
| template<typename L > | |
| void | push (L &&lambda) |
| bool | haveRunningTasks () const |
| ~AsyncTasksPool () | |
| AsyncTasksPool (const AsyncTasksPool &) = delete | |
| AsyncTasksPool & | operator= (const AsyncTasksPool &) = delete |
| AsyncTasksPool | ( | size_t | threadCount | ) |
Creates a new pool with a given number of worker threads
| ~AsyncTasksPool | ( | ) |
|
delete |
|
inline |
|
delete |
|
inline |
Pushes a task to the pool.
| L | The type of the task (usually a lambda). |
| lambda | The task to be executed. |