fixes for SOURCE

This commit is contained in:
Robin Müller 2023-06-30 15:20:25 +02:00
parent a196c3387e
commit 4fc06a1eaf
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 10 additions and 4 deletions

View File

@ -44,6 +44,11 @@ ReturnValue_t Clock::getClock_timeval(timeval* time) {
return returnvalue::OK;
}
ReturnValue_t Clock::getClockMonotonic(timeval* time) {
// TODO: I don't actually know if the timekeeper is monotonic..
return getClock_timeval(time);
}
ReturnValue_t Clock::getUptime(timeval* uptime) {
*uptime = getUptime();

View File

@ -10,9 +10,10 @@ TaskFactory::~TaskFactory() {}
TaskFactory* TaskFactory::instance() { return TaskFactory::factoryInstance; }
PeriodicTaskIF* TaskFactory::createPeriodicTask(
TaskName name_, TaskPriority taskPriority_, TaskStackSize stackSize_, TaskPeriod period_,
TaskDeadlineMissedFunction deadLineMissedFunction_) {
PeriodicTaskIF* TaskFactory::createPeriodicTask(TaskName name_, TaskPriority taskPriority_,
TaskStackSize stackSize_, TaskPeriod period_,
TaskDeadlineMissedFunction deadLineMissedFunction_,
void* args) {
return dynamic_cast<PeriodicTaskIF*>(
new PeriodicTask(name_, taskPriority_, stackSize_, period_, deadLineMissedFunction_));
}
@ -22,7 +23,7 @@ PeriodicTaskIF* TaskFactory::createPeriodicTask(
*/
FixedTimeslotTaskIF* TaskFactory::createFixedTimeslotTask(
TaskName name_, TaskPriority taskPriority_, TaskStackSize stackSize_, TaskPeriod period_,
TaskDeadlineMissedFunction deadLineMissedFunction_) {
TaskDeadlineMissedFunction deadLineMissedFunction_, void* args) {
return dynamic_cast<FixedTimeslotTaskIF*>(
new FixedTimeslotTask(name_, taskPriority_, stackSize_, period_, deadLineMissedFunction_));
}