walnux/libs/libc/semaphore
Tiago Medicci Serrano 40c6af6dec Revert "libs/libc/semaphore: Fix DEBUGASSERTS"
This reverts commit 300992203a to
fix a problem with `esp32-devkitc:blewifi`, which fails to boot up
if `CONFIG_DEBUG_ASSERTIONS=y`.

Introduced by https://github.com/apache/nuttx/pull/16176 with the
following description:

> The DEBUGASSERTS in nxsem_wait and nxsem_trywait are
non-functional, they don't check anything. These were broken in
previous commits.

The above statements are not valid. Originally, there was no
problem calling `nxsem_trywait` from the interrupt and the
`DEBUGASSERT` simply checked a corner case: if ran from the
interrupt context, the current (interrupted) task may be the idle
task. This case is allowed only if called from an interrupt and
that's what the original commit checks with:

```
  DEBUGASSERT(!OSINIT_IDLELOOP() || !sched_idletask() ||
              up_interrupt_context());
```
2025-04-16 10:10:56 +08:00
..
CMakeLists.txt nuttx/syscall: export nxsem_getprioceiling and nxsem_setprioceiling via syscall 2024-10-12 09:50:54 +08:00
Make.defs libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_clockwait.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_close.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_destroy.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_getprioceiling.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_getprotocol.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_getvalue.c libc/semaphore: Read semaphore value by using NXSEM_COUNT macro 2025-04-08 16:12:17 +08:00
sem_init.c sem: change sem wait to atomic operation 2024-12-10 22:00:42 +08:00
sem_open.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_post.c libc/semaphore: Move fast mutex wait/post paths to libc 2025-04-01 20:37:23 +08:00
sem_setprioceiling.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_setprotocol.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_timedwait.c libc/semaphore: remove unused hander file 2024-12-30 12:02:34 +08:00
sem_trywait.c Revert "libs/libc/semaphore: Fix DEBUGASSERTS" 2025-04-16 10:10:56 +08:00
sem_unlink.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_wait.c Revert "libs/libc/semaphore: Fix DEBUGASSERTS" 2025-04-16 10:10:56 +08:00