diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-27 15:52:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-27 15:52:58 +0000 |
commit | e96d8f046b6bce6c4e810b302c1cc1cc578bdae3 (patch) | |
tree | debe53d5a4c8d5a904b5487d632995bbab5a11a2 /nuttx/sched/group_setuptaskfiles.c | |
parent | 47b94bafa5045532f239ea57a3610873b1a71368 (diff) | |
download | px4-firmware-e96d8f046b6bce6c4e810b302c1cc1cc578bdae3.tar.gz px4-firmware-e96d8f046b6bce6c4e810b302c1cc1cc578bdae3.tar.bz2 px4-firmware-e96d8f046b6bce6c4e810b302c1cc1cc578bdae3.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: http://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.c | 5 |
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 */ |