pkarashchenko edited a comment on pull request #5070:
URL: https://github.com/apache/incubator-nuttx/pull/5070#issuecomment-1002780625


   Seems that disabling priority inheritance by default is the right way of 
doing things. My arguments are that by default priority inheritance is used to 
struggle with resource guarding issue (mutual exclusion use case) and does not 
have much sense in case of event signaling use case. The POSIX semaphores 
however have have more wide range then mutual exclusion use case and it is more 
a coincidence that `phtread_mutex`s are implemented on top of POSIX semaphores 
in NuttX (I just want to emphasize that `phtread_mutex`s could have their own 
implementation as an alternative and are not tight together with semaphores in 
general). `pthread_mutex`s are will still have priority inheritance enabled by 
default and that is fine because I truly believe that when NuttX user enables 
priority inheritance that is the exactly use case that needs to be handled by 
this feature.
   Summarizing above: my vote is to change the default protocol for POSIX 
semaphores and proceed with this change.


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