[riot-notifications] [RIOT-OS/RIOT] tests/xtimer_usleep: recognize negative offset (#11493)
notifications at github.com
Wed May 8 18:04:33 CEST 2019
>(...) a lower priority thread should already assume it can be descheduled for XTIMER_BACKOFF ticks at any time (...)
This illustrates why trying to hit the point as precisely as possible (maybe ahead of time) doesn't really gain anything.
>That would make it at most +/- half a tick wrong, being spot on on average.
This would only be true if there were no delays introduced such as with the above effect of (de)scheduling.
As "spot on" can not be guaranteed anyway I'd also vote for "wait at least for the provided duration".
That way we have at least a well defined guarantee in one direction. When very precise timing is required, sleep functions also wouldn't be the goto solution.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications