While debugging I found the call to prvAddCurrentTaskToDelayedList
in xTaskDelayUntil()
and wondered what would happen if xTimeToWake
overflowed on that spot, but xConstTickCount
didn’t.
In this case xConstTickCount
would have a value somewhat close to MAX(TickType_t) and xTimeToWake
would have a small value, leading to extremly long wait times passed to the call.
As overflowing is taken into account in the code right before that I’m wondering if I’m missing something here or if this could become a real issue.
Can someone explain this to me?
Edit: Wanted to link to the code but I’m too new of a user^^
It’s in line 1311 in task.c at revision fa0f5c4