pkarashchenko commented on pull request #5070:
URL: https://github.com/apache/incubator-nuttx/pull/5070#issuecomment-1003000531


   @zhaoxiu-zeng how do you plan to fix this? I was looking into the code as 
well and was looking for a solution, but didn't found a lightweight solution. 
The code only idea that I had was to create a global list of semaphores that 
have at least one holder and iterate that list on task exit in order to find a 
semaphore that contain task in the holder list or create a list of semaphores 
in task control block and add semaphore to that list when task is added as a 
semaphore holder. But both seems to me quite "heavy" in terms of both memory 
and performance.


-- 
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


Reply via email to