27 lines
695 B
C++
27 lines
695 B
C++
/*
|
|
* @file global_execution_queue.h
|
|
*
|
|
* Created on: Jan 9, 2019
|
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
|
*/
|
|
|
|
#ifndef GLOBAL_EXECUTION_QUEUE_H_
|
|
#define GLOBAL_EXECUTION_QUEUE_H_
|
|
|
|
#include "scheduler.h"
|
|
#include "event_queue.h"
|
|
|
|
class TestExecutor : public ExecutorInterface {
|
|
public:
|
|
void scheduleByTimestamp(scheduling_s *scheduling, efitimeus_t timeUs, schfunc_t callback, void *param) override;
|
|
void scheduleForLater(scheduling_s *scheduling, int delayUs, schfunc_t callback, void *param) override;
|
|
void clear();
|
|
int executeAll(efitime_t now);
|
|
int size();
|
|
scheduling_s* getForUnitTest(int index);
|
|
private:
|
|
EventQueue schedulingQueue;
|
|
};
|
|
|
|
#endif /* GLOBAL_EXECUTION_QUEUE_H_ */
|