mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 23:35:47 +00:00
sched: Fix the nxstyle errors in sem_post.c and sig_dispatch.c.
Add the blank line nxstyle wants after three declarations. 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:
parent
42e4c88ef6
commit
2f459314a0
2 changed files with 3 additions and 0 deletions
|
|
@ -209,6 +209,7 @@ int nxsem_post_slow(FAR sem_t *sem)
|
|||
{
|
||||
uint32_t blocking_bit = dq_empty(SEM_WAITLIST(sem)) ?
|
||||
0 : NXSEM_MBLOCKING_BIT;
|
||||
|
||||
atomic_set(NXSEM_MHOLDER(sem),
|
||||
((uint32_t)stcb->pid) | blocking_bit);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -788,6 +788,7 @@ int nxsig_dispatch(pid_t pid, FAR siginfo_t *info, bool thread)
|
|||
*/
|
||||
|
||||
FAR struct task_group_s *group = task_getgroup(pid);
|
||||
|
||||
if (group != NULL)
|
||||
{
|
||||
return group_signal(group, info);
|
||||
|
|
@ -799,6 +800,7 @@ int nxsig_dispatch(pid_t pid, FAR siginfo_t *info, bool thread)
|
|||
/* Get the TCB associated with the thread TID */
|
||||
|
||||
FAR struct tcb_s *stcb = nxsched_get_tcb(pid);
|
||||
|
||||
if (stcb != NULL)
|
||||
{
|
||||
return nxsig_tcbdispatch(stcb, info, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue