mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user