Move pthread join and key creation data into the task group

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5602 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2013-02-03 16:43:58 +00:00
parent 30a0cdf33e
commit 46bb05696e
20 changed files with 302 additions and 213 deletions
+16
View File
@@ -273,6 +273,12 @@ struct dspace_s
*/
#ifdef HAVE_TASK_GROUP
#ifndef CONFIG_DISABLE_PTHREAD
struct join_s; /* Forward reference */
/* Defined in pthread_internal.h */
#endif
struct task_group_s
{
#ifdef HAVE_GROUP_MEMBERS
@@ -296,6 +302,16 @@ struct task_group_s
FAR struct child_status_s *tg_children; /* Head of a list of child status */
#endif
/* Pthreads *******************************************************************/
#ifndef CONFIG_DISABLE_PTHREAD
/* Pthread join Info: */
sem_t tg_joinsem; /* Mutually exclusive access to join data */
FAR struct join_s *tg_joinhead; /* Head of a list of join data */
FAR struct join_s *tg_jointail; /* Tail of a list of join data */
uint8_t tg_nkeys; /* Number pthread keys allocated */
#endif
/* Environment variables ******************************************************/
#ifndef CONFIG_DISABLE_ENVIRON