2020-10-01 14:55:03 -07:00
|
|
|
/**
|
|
|
|
* @file scheduler.h
|
|
|
|
*
|
|
|
|
* @date October 1, 2020
|
|
|
|
*/
|
2021-08-03 19:05:01 -07:00
|
|
|
#include "pch.h"
|
|
|
|
|
2020-10-01 14:55:03 -07:00
|
|
|
#include "scheduler.h"
|
|
|
|
|
|
|
|
void action_s::execute() {
|
|
|
|
efiAssertVoid(CUSTOM_ERR_ASSERT, callback != NULL, "callback==null1");
|
|
|
|
callback(param);
|
|
|
|
}
|
|
|
|
|
|
|
|
schfunc_t action_s::getCallback() const {
|
|
|
|
return callback;
|
|
|
|
}
|
|
|
|
|
|
|
|
void * action_s::getArgument() const {
|
|
|
|
return param;
|
|
|
|
}
|