sched: Remove the names of task lists that no longer exist from comments.

Three comments say that g_waitingforsemaphore must be prioritized, and the
message queue code says that its waiters are in g_waitingformqnotempty and
g_waitingformqnotfull.  These lists do not exist.  A task that waits for a
semaphore, an event or a message queue is on a prioritized wait list in
that object, which g_tasklisttable finds through TLIST_ATTR_OFFSET.

Say that in the comments.  No code change.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
This commit is contained in:
Marco Casaroli 2026-10-08 12:20:07 +02:00 • committed by Alan C. Assis
parent 7fde8a3d29
commit 810c12770e
4 changed files with 9 additions and 9 deletions

View file

@ -81,8 +81,8 @@
* and by a series of task lists. All of these tasks lists are declared
* below. Although it is not always necessary, most of these lists are
* prioritized so that common list handling logic can be used (only the
* g_readytorun, the g_pendingtasks, and the g_waitingforsemaphore lists
* need to be prioritized).
* g_readytorun and g_pendingtasks lists, and the wait lists in each
* semaphore, event and message queue, need to be prioritized).
*/
/* This is the list of all tasks that are ready to run. This is a

View file

@ -238,7 +238,7 @@ ssize_t msgrcv(int msqid, FAR void *msgp, size_t msgsz, long msgtyp,
FAR struct tcb_s *rtcb = this_task();
/* Find the highest priority task that is waiting for
* this queue to be not-full in g_waitingformqnotfull list.
* this queue to be not-full, in the waitfornotfull list of the queue.
* This must be performed in a critical section because
* messages can be sent from interrupt handlers.
*/

View file

@ -233,8 +233,8 @@ int msgsnd(int msqid, FAR const void *msgp, size_t msgsz, int msgflg)
FAR struct tcb_s *rtcb = this_task();
/* Find the highest priority task that is waiting for
* this queue to be non-empty in g_waitingformqnotempty
* list. enter_critical_section() should give us sufficient
* this queue to be non-empty, in the waitfornotempty list of
* the queue. enter_critical_section() should give us sufficient
* protection since interrupts should never cause a change
* in this list
*/

View file

@ -48,8 +48,8 @@
* and by a series of task lists. All of these tasks lists are declared
* below. Although it is not always necessary, most of these lists are
* prioritized so that common list handling logic can be used (only the
* g_readytorun, the g_pendingtasks, and the g_waitingforsemaphore lists
* need to be prioritized).
* g_readytorun and g_pendingtasks lists, and the wait lists in each
* semaphore, event and message queue, need to be prioritized).
*/
#define list_readytorun() (&g_readytorun)
@ -154,8 +154,8 @@ enum task_deliver_e
* and by a series of task lists. All of these tasks lists are declared
* below. Although it is not always necessary, most of these lists are
* prioritized so that common list handling logic can be used (only the
* g_readytorun, the g_pendingtasks, and the g_waitingforsemaphore lists
* need to be prioritized).
* g_readytorun and g_pendingtasks lists, and the wait lists in each
* semaphore, event and message queue, need to be prioritized).
*/
/* This is the list of all tasks that are ready to run. This is a