xiaoxiang781216 commented on code in PR #21615:
URL: https://github.com/apache/nuttx/pull/21615#discussion_r4522877672
##########
sched/sched/sched_setpriority.c:
##########
@@ -227,6 +228,18 @@ static inline void nxsched_blocked_setpriority(FAR struct
tcb_s *tcb,
tasklist = TLIST_BLOCKED(tcb);
if (TLIST_ISPRIORITIZED(task_state))
{
+ FAR struct addrenv_s *oldenv = NULL;
+ bool selected = false;
+
+ /* The wait list of a semaphore can be in the address environment of
+ * the waiter only.
+ */
+
+ if (task_state == TSTATE_WAIT_SEM)
Review Comment:
but this function doesn't touch sem related fields?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]