auto-sync
This commit is contained in:
parent
50fa993995
commit
44cc21bcfd
|
@ -28,7 +28,7 @@ static Executor instance;
|
|||
extern schfunc_t globalTimerCallback;
|
||||
|
||||
static void executorCallback(void *arg) {
|
||||
instance.execute(getTimeNowUs());
|
||||
instance.onTimerCallback(getTimeNowUs());
|
||||
}
|
||||
|
||||
Executor::Executor() {
|
||||
|
@ -68,7 +68,7 @@ void Executor::schedule(const char *prefix, scheduling_s *scheduling, uint64_t n
|
|||
schedule2(prefix, scheduling, nowUs + delayUs, callback, param);
|
||||
}
|
||||
|
||||
void Executor::execute(uint64_t nowUs) {
|
||||
void Executor::onTimerCallback(uint64_t nowUs) {
|
||||
lock();
|
||||
doExecute(nowUs);
|
||||
unlock();
|
||||
|
|
|
@ -16,7 +16,7 @@ public:
|
|||
Executor();
|
||||
void schedule(const char *prefix, scheduling_s *scheduling, uint64_t nowUs, int delayUs, schfunc_t callback, void *param);
|
||||
void schedule2(const char *prefix, scheduling_s *scheduling, uint64_t timeUs, schfunc_t callback, void *param);
|
||||
void execute(uint64_t nowUs);
|
||||
void onTimerCallback(uint64_t nowUs);
|
||||
private:
|
||||
EventQueue queue;
|
||||
bool reentrantLock;
|
||||
|
|
|
@ -130,7 +130,7 @@ int main(void) {
|
|||
testFLStack();
|
||||
|
||||
// resizeMap();
|
||||
printf("Success 20130830\r\n");
|
||||
printf("Success 20130914\r\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,12 @@ void scheduleTask(const char *msg, scheduling_s *scheduling, int delayUs, schfun
|
|||
schedulingQueue.insertTask(scheduling, getTimeNowUs() + delayUs, callback, param);
|
||||
}
|
||||
|
||||
void scheduleTask2(const char *prefix, scheduling_s *scheduling, uint64_t time, schfunc_t callback, void *param) {
|
||||
firmwareError("not implemented");
|
||||
//schedulingQueue.insertTask(scheduling, getTimeNowUs() + delayUs, callback, param);
|
||||
}
|
||||
|
||||
|
||||
void initSignalExecutorImpl(void) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue