You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to suggest some possible improvements for vTaskDelayUntil.
For our application, we would like to check whether a deadline for a periodic task was missed.
For us, this is generally the case if vTaskDelayUntil() does not delay the task. Unfortunately, vTaskDelayUntil does not have a returnvalue, which tells me whether the task was delayed or not ( could also be implemented by passing a pointer to a boolean), so we needed to perform the check before calling vTaskDelayUntil (and we also had to implement the overflow checking again) because the last wake time will be updated internally by it. What do you think about this?
Basically, the interface for vTaskDelayUntil would change from
And the local variable xShouldDelay is assigned too *xWasDelayed at the function end.
Unfortunately, this is an API change but I think it would be a nice feature to implement the checking of missed deadlines.
The text was updated successfully, but these errors were encountered:
In this case probably best to introduce xTaskDelayUnitl() that proves the additional information - then make vTaskDelayUntil() a macro that calls xTaskDelayUnitl() for backward compatibility.
Hello,
I would like to suggest some possible improvements for vTaskDelayUntil.
For our application, we would like to check whether a deadline for a periodic task was missed.
For us, this is generally the case if vTaskDelayUntil() does not delay the task. Unfortunately,
vTaskDelayUntil
does not have a returnvalue, which tells me whether the task was delayed or not ( could also be implemented by passing a pointer to a boolean), so we needed to perform the check before callingvTaskDelayUntil
(and we also had to implement the overflow checking again) because the last wake time will be updated internally by it. What do you think about this?Basically, the interface for
vTaskDelayUntil
would change fromto
And the local variable
xShouldDelay
is assigned too*xWasDelayed
at the function end.Unfortunately, this is an API change but I think it would be a nice feature to implement the checking of missed deadlines.
The text was updated successfully, but these errors were encountered: