Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sched/group/group_leave.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ group_release(FAR struct task_group_s *group, uint8_t ttype)
}
#endif

/* Mark the group as deleted now */

group->tg_flags |= GROUP_FLAG_DELETED;

/* Then drop the group freeing the allocated memory */

#ifndef CONFIG_DISABLE_PTHREAD
if (ttype == TCB_FLAG_TTYPE_PTHREAD)
{
/* Mark the group as deleted now */

group->tg_flags |= GROUP_FLAG_DELETED;

group_drop(group);
}
#endif
Expand Down
4 changes: 4 additions & 0 deletions sched/sched/sched_releasetcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ int nxsched_release_tcb(FAR struct tcb_s *tcb, uint8_t ttype)
#endif
)
{
/* Mark the group as deleted now */

ttcb->group.tg_flags |= GROUP_FLAG_DELETED;

return ret;
}
}
Expand Down