Callisto Engine
scheduler.h
1#pragma once
2#include "../api_status.h"
3#include <cstddef>
4
5namespace cl::threading {
6 class async_worker;
7
13 class scheduler {
14 public:
21 virtual api_status init(async_worker workers[], size_t worker_count) = 0;
22
28 virtual api_status next(async_worker** worker) = 0;
29 };
30}
Definition: async_worker.h:7
Thread pool scheduler interface.
Definition: scheduler.h:13
virtual api_status next(async_worker **worker)=0
Grabs the next suitable scheduler, according to the algorithm being used.
virtual api_status init(async_worker workers[], size_t worker_count)=0
Initializes the scheduler.