Thread pool scheduler interface. More...
#include <scheduler.h>

Public Member Functions | |
| virtual api_status | init (async_worker workers[], size_t worker_count)=0 |
| Initializes the scheduler. More... | |
| virtual api_status | next (async_worker **worker)=0 |
| Grabs the next suitable scheduler, according to the algorithm being used. More... | |
Thread pool scheduler interface.
This is the main interface for creating schedulers for the engine task pool
|
pure virtual |
Initializes the scheduler.
| workers | The workers that are available to the scheduler |
| worker_count | The amount of workers in the array |
|
pure virtual |
Grabs the next suitable scheduler, according to the algorithm being used.
| worker | a pointer to an async_worker pointer that will contain the result. |
Implemented in cl::threading::round_robin.