nuttx/sched/semaphore
Zeng Zhaoxiu fc4ab4fd94 semaphore: Improve the nxsem_release_holder function.
1. The task which called nxsem_release_holder may not be a holder of the semaphore,
   counts of the holder would not be decreamented.
   This commit try to resolve the problem if there is only one holder.
2. Avoid counts overflow.

Signed-off-by: Zeng Zhaoxiu <walker.zeng@transtekcorp.com>
2022-02-13 03:20:51 +08:00
..
Make.defs sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sem_clockwait.c sched/semaphore: remove redundant goto case 2021-12-13 14:38:44 +09:00
sem_destroy.c sched: nxstyle fixes 2021-02-09 01:21:53 -08:00
sem_holder.c semaphore: Improve the nxsem_release_holder function. 2022-02-13 03:20:51 +08:00
sem_initialize.c Make more OS internal names consistent 2020-05-10 22:47:07 +08:00
sem_post.c sched/: Make more naming consistent 2020-05-17 14:01:00 -03:00
sem_recover.c semphore: release all semphores' holder that the task held when exit 2022-02-13 03:20:51 +08:00
sem_reset.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sem_setprotocol.c pthread: restore pthread mutex default protocol POSIX compatibility 2022-01-11 01:55:12 +08:00
sem_tickwait.c sched/semaphore: remove redundant goto case 2021-12-13 14:38:44 +09:00
sem_timedwait.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
sem_timeout.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sem_trywait.c Revert "sem: remove limitation of irq context when do sem_trywait" 2022-01-29 00:53:47 +08:00
sem_wait.c Make more OS internal names consistent 2020-05-10 22:47:07 +08:00
sem_waitirq.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
semaphore.h semphore: release all semphores' holder that the task held when exit 2022-02-13 03:20:51 +08:00
spinlock.c sched/*/*spinlock.c: Fix some typos. 2021-07-24 09:00:41 -07:00