SDFM_CONROL_TEAST_EFC/EFC_PlatformC28xTest/AsyncRunnerInterface.hh

32 lines
503 B
C++
Raw Normal View History

2024-10-11 09:35:38 +03:00
/*
* AsyncRunnerInterface.hh
*
* Created on: 20 мая 2024 г.
* Author: leonid
*/
#ifndef ASYNCRUNNERINTERFACE_HH_
#define ASYNCRUNNERINTERFACE_HH_
#include <stdint.h>
namespace umlib { namespace tests {
struct TaskInterface {
virtual void do_task() = 0;
};
struct AsyncRunnerInterface {
virtual void run_after( TaskInterface * task, uint32_t processor_tick ) = 0;
virtual void cancel() = 0;
virtual bool is_ran() = 0;
};
}}
#endif /* ASYNCRUNNERINTERFACE_HH_ */