ParallelME Runtime Environment
|
#include <SchedulerFCFS.hpp>
Public Member Functions | |
void | push (std::unique_ptr< Task > task) |
std::unique_ptr< Task > | pop (Device &device) |
bool | hasWork () |
Public Member Functions inherited from Scheduler | |
Scheduler (const Scheduler &)=delete | |
Scheduler & | operator= (const Scheduler &)=delete |
An implementation of the First Come First Served scheduling strategy for the ParallelME Runtime.
|
virtual |
If the scheduler still has work to do. This function is thread-safe.
Implements Scheduler.
Pops a task from the scheduler. This function is thread-safe.
Implements Scheduler.
|
virtual |
Pushes a task into the scheduler. This function is thread-safe.
Implements Scheduler.