A attached a second proposal. This proposal takes vos_threadDealy() from version 3.0.0.0 with minimal adjustments. Please note, that with the TIMER_ABSTIME flag passed to clock_nanosleep(), the remaining time is not returned in remain. I refer herein to https://linux.die.net/man/2/clock_nanosleep
Wrong errno handling in vos_threadDelay() function