GUIDINGLI commented on pull request #5849:
URL: https://github.com/apache/incubator-nuttx/pull/5849#issuecomment-1080651582


   > @GUIDINGLI have you tested with `CONFIG_PRIORITY_INHERITANCE` enabled?
   
   Don't need, because lots of people take sem before the OSINIT_OSREADY, 
   like mm_sem_take
   like group_setupidlefiles nx_open sem_take
   like ...
   
   And before the OSINIT_IDLELOOP state, we allow user call sem_wait.
   
    72 int nxsem_wait(FAR sem_t *sem)
    73 {
    74   FAR struct tcb_s *rtcb = this_task();
    75   irqstate_t flags;
    76   int ret = -EINVAL;
    77 
    78   /* This API should not be called from interrupt handlers & idleloop */
    79 
    80   DEBUGASSERT(sem != NULL && up_interrupt_context() == false);
    81   DEBUGASSERT(!OSINIT_IDLELOOP() || !sched_idletask());
    82 
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to