SDFM_CONROL_TEAST_EFC/EFC_PlatformC28xTest/AsyncRunnerInterface.hh
2024-10-11 09:35:38 +03:00

32 lines
503 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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_ */