diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h index 88680f71ae2..c22785b2450 100644 --- a/include/nuttx/sched.h +++ b/include/nuttx/sched.h @@ -51,24 +51,17 @@ /* Configuration ************************************************************/ -/* Task groups currently only supported for retention of child status */ - -#undef HAVE_GROUP_MEMBERS - -/* We need a group an group members if we are supporting the parent/child - * relationship. +/* We need to track group members at least for: + * + * - To signal all tasks in a group. (eg. SIGCHLD) + * - _exit() to collect siblings threads. */ -#if defined(CONFIG_SCHED_HAVE_PARENT) && defined(CONFIG_SCHED_CHILD_STATUS) +#undef HAVE_GROUP_MEMBERS +#if !defined(CONFIG_DISABLE_PTHREAD) # define HAVE_GROUP_MEMBERS 1 #endif -/* We don't need group members if support for pthreads is disabled */ - -#ifdef CONFIG_DISABLE_PTHREAD -# undef HAVE_GROUP_MEMBERS -#endif - /* Sporadic scheduling */ #ifndef CONFIG_SCHED_SPORADIC_MAXREPL