SDFM_CONTROL/EFC_PlatformC28x_Test/AsyncRunner.hh

39 lines
589 B
C++
Raw Normal View History

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