Callisto Engine
cl::threading::round_robin Class Reference

Round robin implementation of async worker scheduler. More...

#include <round_robin.h>

Inheritance diagram for cl::threading::round_robin:
Collaboration diagram for cl::threading::round_robin:

Public Member Functions

api_status init (async_worker *workers, size_t worker_count) override
 
api_status next (async_worker **worker) override
 Grabs the next suitable scheduler, according to the algorithm being used. More...
 
- Public Member Functions inherited from cl::threading::scheduler
virtual api_status init (async_worker workers[], size_t worker_count)=0
 Initializes the scheduler. More...
 

Detailed Description

Round robin implementation of async worker scheduler.

Schedules by simply rotating a list of workers.

Member Function Documentation

◆ next()

cl::api_status cl::threading::round_robin::next ( async_worker **  worker)
overridevirtual

Grabs the next suitable scheduler, according to the algorithm being used.

Parameters
workera pointer to an async_worker pointer that will contain the result.
Returns
api_status::ok on success, or implementation-dependent errors.

Implements cl::threading::scheduler.


The documentation for this class was generated from the following files: