This is an automated email from the ASF dual-hosted git repository. archer pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 4c1c05164a02436522dd6dd5a35878c9f40df043 Author: hujun5 <huj...@xiaomi.com> AuthorDate: Fri Oct 11 20:58:37 2024 +0800 sched/signal: There is no need to use sched_[un]lock Signed-off-by: hujun5 <huj...@xiaomi.com> --- sched/signal/sig_dispatch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sched/signal/sig_dispatch.c b/sched/signal/sig_dispatch.c index d726d5c3ae..35cbc7409d 100644 --- a/sched/signal/sig_dispatch.c +++ b/sched/signal/sig_dispatch.c @@ -115,7 +115,6 @@ static int nxsig_queue_action(FAR struct tcb_s *stcb, siginfo_t *info) irqstate_t flags; int ret = OK; - sched_lock(); DEBUGASSERT(stcb != NULL && stcb->group != NULL); /* Find the group sigaction associated with this signal */ @@ -203,7 +202,6 @@ static int nxsig_queue_action(FAR struct tcb_s *stcb, siginfo_t *info) } } - sched_unlock(); return ret; }