You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/01/06 14:42:18 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 opened a new issue #5184: Replace all place which use semaphore as lock with mutex wrapper

xiaoxiang781216 opened a new issue #5184:
URL: https://github.com/apache/incubator-nuttx/issues/5184


   See the discussion: https://github.com/apache/incubator-nuttx/pull/5070 and https://www.mail-archive.com/dev@nuttx.apache.org/msg07312.html


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] pkarashchenko commented on issue #5184: Replace all place which use semaphore as lock with mutex wrapper

Posted by GitBox <gi...@apache.org>.
pkarashchenko commented on issue #5184:
URL: https://github.com/apache/incubator-nuttx/issues/5184#issuecomment-1008133978


   @xiaoxiang781216 will we improve mutex wrapper to check for holder before releasing a mutex or a separate ticket should be created for that? Currently mutex can be released from a task that is not holding 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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on issue #5184: Replace all place which use semaphore as lock with mutex wrapper

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on issue #5184:
URL: https://github.com/apache/incubator-nuttx/issues/5184#issuecomment-1019283890


   Yes, this is the safe path to fix the priority inheritance issue.


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on issue #5184: Replace all place which use semaphore as lock with mutex wrapper

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on issue #5184:
URL: https://github.com/apache/incubator-nuttx/issues/5184#issuecomment-1008220450


   it can be added in the separate PR. Maybe need to enabled in the debug mode to save the space.


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] pkarashchenko commented on issue #5184: Replace all place which use semaphore as lock with mutex wrapper

Posted by GitBox <gi...@apache.org>.
pkarashchenko commented on issue #5184:
URL: https://github.com/apache/incubator-nuttx/issues/5184#issuecomment-1019115983


   I think that probably a good way will be to move priority inheritance from sem to mutex and clean-up priority inheritance APIs for semaphores after we switch to mutexes in code


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org