sched: assert if call timedwait from interrupt

Nuttx does not allow calling interfaces like TIME_WAIT in interrupts, so we need to directly assert.

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2024-11-15 11:36:10 +08:00
committed by Xiang Xiao
parent 9869181761
commit 6f1e99c9bd
+1 -1
View File
@@ -340,7 +340,7 @@ int nxsig_timedwait(FAR const sigset_t *set, FAR struct siginfo *info,
siginfo_t unbinfo;
int ret;
DEBUGASSERT(set != NULL);
DEBUGASSERT(set != NULL && up_interrupt_context() == false);
/* Several operations must be performed below: We must determine if any
* signal is pending and, if not, wait for the signal. Since signals can