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

39 lines
589 B
C++
Raw 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.

/*
* AsyncRunner.hh
*
* Created on: 19 мая 2024 г.
* Author: leonid
*/
#ifndef ASYNCRUNNER_HH_
#define ASYNCRUNNER_HH_
#include "AsyncRunnerInterface.hh"
namespace platform {
class AsyncRunner : public umlib::tests::AsyncRunnerInterface {
AsyncRunner();
umlib::tests::TaskInterface * task;
bool ran;
static void async_run();
void run();
public:
void run_after( umlib::tests::TaskInterface * task, uint32_t processor_tick );
void cancel();
bool is_ran();
static AsyncRunner & getInstance();
};
}
#endif /* ASYNCRUNNER_HH_ */