commit | 7700eb2a15e1a492e1ee9e85a8be67a09fa76700 | [log] [tgz] |
---|---|---|
author | Piotr Zięcik <piotr.ziecik@nordicsemi.no> | Thu Oct 25 17:45:08 2018 +0200 |
committer | Carles Cufí <carles.cufi@nordicsemi.no> | Tue Oct 30 18:27:31 2018 +0100 |
tree | 47c343c4fcbb56f7b039f677df29c4039179d9b0 | |
parent | 7791f58a1545759700a2c8f77a7f2bb404087899 [diff] |
kernel: sched: Make k_sleep() similar to POSIX equivalent This commit introduces k_sleep() return value, which provides information about actual sleep time. If the returned value is not-zero, the thread slept shorter than requested, which is only possible if the thread has been woken up by k_wakeup() call. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>