diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-26 22:25:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-26 22:25:21 +0000 |
commit | b82c36961aa730fc39a9fc8eac17e2518128cb67 (patch) | |
tree | 7b706cce24489ea8e025a9802d3daf3078428e19 /nuttx/sched/group_releasefiles.c | |
parent | 3bec164b3ae1cd7f9b5dcec532e7d073be96d45d (diff) | |
download | px4-firmware-b82c36961aa730fc39a9fc8eac17e2518128cb67.tar.gz px4-firmware-b82c36961aa730fc39a9fc8eac17e2518128cb67.tar.bz2 px4-firmware-b82c36961aa730fc39a9fc8eac17e2518128cb67.zip |
Move stream data from TCB to task group structure.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5569 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/group_releasefiles.c')
-rw-r--r-- | nuttx/sched/group_releasefiles.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nuttx/sched/group_releasefiles.c b/nuttx/sched/group_releasefiles.c index 40bf373b4..b33415c76 100644 --- a/nuttx/sched/group_releasefiles.c +++ b/nuttx/sched/group_releasefiles.c @@ -80,7 +80,9 @@ int group_releasefiles(_TCB *tcb) #if CONFIG_NFILE_DESCRIPTORS > 0 FAR struct task_group_s *group = tcb->group; DEBUGASSERT(group); +#endif +#if CONFIG_NFILE_DESCRIPTORS > 0 /* Free resources used by the file descriptor list */ files_releaselist(&group->tg_filelist); @@ -88,11 +90,8 @@ int group_releasefiles(_TCB *tcb) #if CONFIG_NFILE_STREAMS > 0 /* Free the stream list */ - if (tcb->streams) - { - lib_releaselist(tcb->streams); - tcb->streams = NULL; - } + lib_releaselist(&group->tg_streamlist); + #endif /* CONFIG_NFILE_STREAMS */ #endif /* CONFIG_NFILE_DESCRIPTORS */ |