This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 97db9a499c9 sched/signal: use list_waitingforsignal() to access
g_waitingforsignal
97db9a499c9 is described below
commit 97db9a499c9566f18f4397502662802eaeffc537
Author: wangchengdong <[email protected]>
AuthorDate: Mon Oct 20 14:06:58 2025 +0800
sched/signal: use list_waitingforsignal() to access g_waitingforsignal
Replace direct access to the g_waitingforsignal list with the
NuttX-defined macro list_waitingforsignal() to improve code
consistency and maintainability.
Signed-off-by: Chengdong Wang [email protected]
---
sched/sched/sched_sleep.c | 2 +-
sched/signal/sig_timedwait.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sched/sched/sched_sleep.c b/sched/sched/sched_sleep.c
index 6c01f15483d..de4a922d1cc 100644
--- a/sched/sched/sched_sleep.c
+++ b/sched/sched/sched_sleep.c
@@ -131,7 +131,7 @@ void nxsched_ticksleep(unsigned int ticks)
/* Add the task to the specified blocked task list */
rtcb->task_state = TSTATE_WAIT_SIG;
- dq_addlast((FAR dq_entry_t *)rtcb, &g_waitingforsignal);
+ dq_addlast((FAR dq_entry_t *)rtcb, list_waitingforsignal());
/* Now, perform the context switch if one is needed */
diff --git a/sched/signal/sig_timedwait.c b/sched/signal/sig_timedwait.c
index fb94a9295fc..c7cdc298a75 100644
--- a/sched/signal/sig_timedwait.c
+++ b/sched/signal/sig_timedwait.c
@@ -320,7 +320,7 @@ int nxsig_clockwait(int clockid, int flags,
/* Add the task to the specified blocked task list */
rtcb->task_state = TSTATE_WAIT_SIG;
- dq_addlast((FAR dq_entry_t *)rtcb, &g_waitingforsignal);
+ dq_addlast((FAR dq_entry_t *)rtcb, list_waitingforsignal());
/* Now, perform the context switch if one is needed */