GUIDINGLI commented on pull request #5849: URL: https://github.com/apache/incubator-nuttx/pull/5849#issuecomment-1080455573
@pkarashchenko The pm_lock just a global value: #define pm_lock() nxsem_wait(&g_pmglobals.regsem); I hasn't meet error when do pm_register, but the code can be more easier, so comes this patch. And I guess someone who add the the judgement with OSINIT_OSREADY, maybe caused by: 722 /* The OS is fully initialized and we are beginning multi-tasking */ 723 724 g_nx_initstate = OSINIT_OSREADY; But, I don't think we need this judgement, so remove it. -- 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]
