zephyr/tests/kernel
Andrew Boie d2b8922fa3 kernel: allow threads to sleep forever
Previously, passing K_FOREVER to k_sleep() would return
immediately.

Forever is a long time. Even if woken up at some point,
we still had forever to sleep, so return K_FOREVER in this
case.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2019-11-09 00:36:34 +01:00
..
common
context
critical
device
early_sleep
fatal
fifo
fp_sharing
gen_isr_table
interrupt
lifo
mbox
mem_heap/mheap_api_concept
mem_pool
mem_protect
mem_slab
mp
msgq/msgq_api
mutex
obj_tracing
pending
pipe
poll
profiling/profiling_api
queue
sched
semaphore
sleep
smp
spinlock
stack
threads
tickless
timer
workq
xip