EIVE upstream #29
@ -44,6 +44,11 @@ ReturnValue_t Clock::getClock_timeval(timeval* time) {
|
|||||||
return returnvalue::OK;
|
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) {
|
ReturnValue_t Clock::getUptime(timeval* uptime) {
|
||||||
*uptime = getUptime();
|
*uptime = getUptime();
|
||||||
|
|
||||||
|
@ -10,9 +10,10 @@ TaskFactory::~TaskFactory() {}
|
|||||||
|
|
||||||
TaskFactory* TaskFactory::instance() { return TaskFactory::factoryInstance; }
|
TaskFactory* TaskFactory::instance() { return TaskFactory::factoryInstance; }
|
||||||
|
|
||||||
PeriodicTaskIF* TaskFactory::createPeriodicTask(
|
PeriodicTaskIF* TaskFactory::createPeriodicTask(TaskName name_, TaskPriority taskPriority_,
|
||||||
TaskName name_, TaskPriority taskPriority_, TaskStackSize stackSize_, TaskPeriod period_,
|
TaskStackSize stackSize_, TaskPeriod period_,
|
||||||
TaskDeadlineMissedFunction deadLineMissedFunction_) {
|
TaskDeadlineMissedFunction deadLineMissedFunction_,
|
||||||
|
void* args) {
|
||||||
return dynamic_cast<PeriodicTaskIF*>(
|
return dynamic_cast<PeriodicTaskIF*>(
|
||||||
new PeriodicTask(name_, taskPriority_, stackSize_, period_, deadLineMissedFunction_));
|
new PeriodicTask(name_, taskPriority_, stackSize_, period_, deadLineMissedFunction_));
|
||||||
}
|
}
|
||||||
@ -22,7 +23,7 @@ PeriodicTaskIF* TaskFactory::createPeriodicTask(
|
|||||||
*/
|
*/
|
||||||
FixedTimeslotTaskIF* TaskFactory::createFixedTimeslotTask(
|
FixedTimeslotTaskIF* TaskFactory::createFixedTimeslotTask(
|
||||||
TaskName name_, TaskPriority taskPriority_, TaskStackSize stackSize_, TaskPeriod period_,
|
TaskName name_, TaskPriority taskPriority_, TaskStackSize stackSize_, TaskPeriod period_,
|
||||||
TaskDeadlineMissedFunction deadLineMissedFunction_) {
|
TaskDeadlineMissedFunction deadLineMissedFunction_, void* args) {
|
||||||
return dynamic_cast<FixedTimeslotTaskIF*>(
|
return dynamic_cast<FixedTimeslotTaskIF*>(
|
||||||
new FixedTimeslotTask(name_, taskPriority_, stackSize_, period_, deadLineMissedFunction_));
|
new FixedTimeslotTask(name_, taskPriority_, stackSize_, period_, deadLineMissedFunction_));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user