xiaoxiang781216 commented on code in PR #15377: URL: https://github.com/apache/nuttx/pull/15377#discussion_r1899070361
########## sched/semaphore/sem_tickwait.c: ########## @@ -68,12 +68,10 @@ int nxsem_tickwait(FAR sem_t *sem, uint32_t delay) { - FAR struct tcb_s *rtcb = this_task(); + FAR struct tcb_s *rtcb; irqstate_t flags; int ret; - DEBUGASSERT(sem != NULL && up_interrupt_context() == false); Review Comment: why remove DEBUGASSERT from nxsem_tickwait? it's always wrong to call nxsem_tickwait inside the interrupt context. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org