summaryrefslogtreecommitdiff
path: root/nuttx/sched/group_setuptaskfiles.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-27 15:52:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-27 15:52:58 +0000
commit2f2cd79e084223f644af5bb88ff19fd4f739f8b7 (patch)
treedebe53d5a4c8d5a904b5487d632995bbab5a11a2 /nuttx/sched/group_setuptaskfiles.c
parent46d5183722a1aac256357f1a054575c6d5ab9a9f (diff)
downloadpx4-nuttx-2f2cd79e084223f644af5bb88ff19fd4f739f8b7.tar.gz
px4-nuttx-2f2cd79e084223f644af5bb88ff19fd4f739f8b7.tar.bz2
px4-nuttx-2f2cd79e084223f644af5bb88ff19fd4f739f8b7.zip
Add a start hook that can be setup to call a function in the context of a new thread before the new threads main() has been called.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5571 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/group_setuptaskfiles.c')
-rw-r--r--nuttx/sched/group_setuptaskfiles.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/sched/group_setuptaskfiles.c b/nuttx/sched/group_setuptaskfiles.c
index d52adcfee..e2e7d4634 100644
--- a/nuttx/sched/group_setuptaskfiles.c
+++ b/nuttx/sched/group_setuptaskfiles.c
@@ -46,6 +46,7 @@
#include <nuttx/net/net.h>
#include "os_internal.h"
+#include "group_internal.h"
#if CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0
@@ -159,8 +160,8 @@ static inline void sched_dupsockets(FAR _TCB *tcb)
/* Get pointers to the parent and child task socket lists */
- parent = rtcb->group->tg_sockets->sl_sockets;
- child = tcb->group->tg_sockets->sl_sockets;
+ parent = rtcb->group->tg_socketlist.sl_sockets;
+ child = tcb->group->tg_socketlist.sl_sockets;
/* Check each socket in the parent socket list */