2022-01-25 19:40:50 -08:00
|
|
|
/**
|
|
|
|
* @file scheduler.h
|
|
|
|
*
|
|
|
|
* @date October 1, 2020
|
|
|
|
*/
|
|
|
|
#include "pch.h"
|
|
|
|
|
|
|
|
#include "scheduler.h"
|
|
|
|
|
|
|
|
void action_s::execute() {
|
2023-04-28 21:13:13 -07:00
|
|
|
efiAssertVoid(ObdCode::CUSTOM_ERR_ASSERT, callback != NULL, "callback==null1");
|
2022-01-25 19:40:50 -08:00
|
|
|
callback(param);
|
|
|
|
}
|
|
|
|
|
|
|
|
schfunc_t action_s::getCallback() const {
|
|
|
|
return callback;
|
|
|
|
}
|
|
|
|
|
|
|
|
void * action_s::getArgument() const {
|
|
|
|
return param;
|
|
|
|
}
|