incubator-nuttx/sched
Jukka Laitinen 07d5bc2c50 sched/semaphore/sem_tickwait.c: Fix nxsem_tickwait_uninterruptible end condition
nxsem_tickwait correctly sleeps more than 1 tick. But nxsem_tickwait_uninterruptible
may wake up to a signal (with -EINTR), in which case the tick + 1 must also
be taken into account. Otherwise the nxsem_tickwait_uninterruptible may
wake up 1 tick too early.

Also fix the nxsem_tickwait to return with -ETIMEDOUT if called with delay 0.
This is similar to e.g.  posix sem_timedwait.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2024-09-30 19:23:01 +08:00
..
addrenv sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
clock clock: correct compile failed 2024-09-29 18:18:01 +08:00
environ sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
event sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
init sched: change the SMP scheduling policy from synchronous to asynchronous 2024-09-29 08:54:51 +08:00
instrument sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
irq critmonitor: add caller support 2024-09-19 03:16:14 +08:00
misc assert: dump all CPU registers and stack 2024-09-30 18:43:35 +08:00
module modlib/dlfcn:unify same code 2024-09-29 15:06:54 +08:00
mqueue mqueue: refactor of mqueue 2024-09-29 18:18:01 +08:00
paging sched: add nxsched_remove_self 2024-09-24 22:07:00 +08:00
pthread Revert "pthread_mutex:add deadlock assert" 2024-09-23 23:54:38 +08:00
sched sched: handle sched lock in interrupt 2024-09-30 16:22:44 +08:00
semaphore sched/semaphore/sem_tickwait.c: Fix nxsem_tickwait_uninterruptible end condition 2024-09-30 19:23:01 +08:00
signal sched: add nxsched_remove_self 2024-09-24 22:07:00 +08:00
task sched: change the SMP scheduling policy from synchronous to asynchronous 2024-09-29 08:54:51 +08:00
timer sched/signal: Simplified Implementation for SIGEV_THREAD_TID. 2024-09-23 12:29:36 +08:00
tls sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
wdog wdog: rename wd_start_absolute() to wd_start_abstick() 2024-09-17 12:15:14 +08:00
wqueue sched/wqueue: Fix unexpected dq entry status 2024-09-17 02:56:39 +08:00
CMakeLists.txt sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
Kconfig assert: dump all CPU registers and stack 2024-09-30 18:43:35 +08:00
Makefile Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00