davids5 commented on code in PR #6318:
URL: https://github.com/apache/incubator-nuttx/pull/6318#discussion_r974494229


##########
sched/semaphore/sem_holder.c:
##########
@@ -489,117 +411,52 @@ static int nxsem_restoreholderprio(FAR struct 
semholder_s *pholder,
       nxsem_freeholder(sem, pholder);
     }
 
+  /* We attempt to restore thread priority to its base priority.  If
+   * there is any thread with the higher priority waiting for the
+   * semaphore held by htcb then this value will be overwritten.
+   */
+
+  hpriority = htcb->boost_priority > htcb->base_priority ?
+              htcb->boost_priority : htcb->base_priority;
+

Review Comment:
   This is getting the holder's priority that can be boosted or at base. The 
test is the next bit.



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