pkarashchenko commented on pull request #5539: URL: https://github.com/apache/incubator-nuttx/pull/5539#issuecomment-1046797144
> > there is `up_idle` from IDLE thread that can be platform / board specific. So we do not know if allocation or free is happening there. I'm against keeping this case unhandled > > If you keeping this un-handled, but how to implement up_idle(), in IDLE, user can call `wait` or not ? If I haven't miss your point, you want: > > 1. CONFIG_PRIORITY_INHERITANCE=y, idle can't call wait. > > 2. if don't set CONFIG_PRIORITY_INHERITANCE, idle can call wait. > > > Then you want the user who implement up_idle() to divide the situation ? I reexamined the changes again and see that you routed IDLE task case to `_SEM_WAIT(&heap->mm_semaphore);` call in `else`. That is ok. I missed the point when `return false;` was removed together with `else if (sched_idletask())` condition. -- 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]
