hujun260 commented on code in PR #16673:
URL: https://github.com/apache/nuttx/pull/16673#discussion_r2186284177


##########
sched/sched/sched_setpriority.c:
##########
@@ -259,7 +250,7 @@ static inline void nxsched_running_setpriority(FAR struct 
tcb_s *tcb,
 #endif
           if (nxsched_reprioritize_rtr(tcb, sched_priority))
             {
-              up_switch_context(this_task(), rtcb);
+              up_switch_context(this_task(), tcb);

Review Comment:
   I would like to clarify something
   old_tcb = this_task()
   if(nxsched_reprioritize_rtr())
   {
        new_tcb = this_task()
        
        ### **old_tcb != new_tcb**
   }



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