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/10/18 19:59:39 UTC

[GitHub] [incubator-nuttx-apps] pkarashchenko commented on a diff in pull request #1358: ostest:add sem protocl to priority inheritance

pkarashchenko commented on code in PR #1358:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1358#discussion_r998652612


##########
testing/ostest/prioinherit.c:
##########
@@ -530,6 +530,8 @@ void priority_inheritance(void)
   g_medpri = my_pri - 1;
 
   sem_init(&g_sem, 0, NLOWPRI_THREADS);
+  sem_setprotocol(&g_sem, SEM_PRIO_INHERIT);

Review Comment:
   why not change to nxmutex?



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