Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
Go to file
Benjamin Walsh 76103ecc2b test_sema: test timeout APIs
Test the nano_xxx_sem_wait_timeout() APIs.

First, the task waits with a timeout and times out. Then it wait with a
timeout, but gets the semaphore in time.

Then, multiple timeout tests are done for the fibers, to test the
ordering of queueing/dequeueing when timeout occurs, first on one
semaphore, then on multiple semaphores.

Finally, multiple fibers pend on one semaphore, and they all get the
semaphore in time, except the last one: this tests that the timeout is
recomputed correctly when timeouts are aborted.

Change-Id: I73c174e6f15f38377a14573cb7f531e5e6ca4c07
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-02-05 20:14:22 -05:00
arch nanokernel: add and initialize timeout fields in ccs/s_NANO 2016-02-05 20:14:22 -05:00
config Rename VPF files to use MDEF file extension 2016-02-05 20:14:15 -05:00
doc fixed block formatting 2016-02-05 20:14:21 -05:00
drivers Rename *.s files to *.S 2016-02-05 20:14:21 -05:00
include nanokernel: allow nano time tracking to be used in microkernels 2016-02-05 20:14:22 -05:00
kernel nanokernel: add CONFIG_NANO_TIMEOUTS 2016-02-05 20:14:22 -05:00
lib/libc libc: Add tolower implementation 2016-02-05 20:14:14 -05:00
misc dlist: enhance library and make all functions inline 2016-02-05 20:14:22 -05:00
net net: Add kconf for networking 2016-02-05 20:14:20 -05:00
samples test_sema: test timeout APIs 2016-02-05 20:14:22 -05:00
scripts sanity: Enable out-of-tree sanity check 2016-02-05 20:14:21 -05:00
shared/include/nanokernel/x86 Replace use of __attribute__((packed)) with __packed 2016-02-05 20:14:13 -05:00
.gitattributes First commit 2015-04-10 16:44:37 -07:00
.gitignore Remove obsolete .gitignore entry 2016-02-05 20:14:20 -05:00
.mailmap First commit 2015-04-10 16:44:37 -07:00
Kconfig Rename Tiny Mountain -> Zephyr OS 2016-02-05 20:14:20 -05:00
Makefile Kbuild: Assembly code extension. 2016-02-05 20:14:20 -05:00
Makefile.inc Rename TIMO -> ZEPHYR 2016-02-05 20:14:16 -05:00
zephyr-env.sh Rename timo-env.sh to zephyr-env.sh 2016-02-05 20:14:16 -05:00