![]() |
Lysa
0.0
Lysa 3D Engine
|
A pool of asynchronous tasks executed in background threads.
Tasks are pushed to the pool and executed in separate std::jthreads. The main loop take care of the terminated threads.
Public Member Functions | |
| template<typename L > | |
| void | push (L &&lambda) |
| ~AsyncTasksPool () | |
| ~AsyncTasksPool | ( | ) |
|
inline |
Pushes a task to the pool.
| L | The type of the task (usually a lambda). |
| lambda | The task to be executed. |