diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-11 08:37:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-11 08:37:06 -0600 |
commit | 43108346e9ef40deb13ff1c5a817aa4764ab5891 (patch) | |
tree | 9ddedf421bc60d930855086a0fb778fe28b3593b /nuttx/sched/group | |
parent | e9f48fdfcc231cd930b84b5278ff91e3e1954678 (diff) | |
download | nuttx-43108346e9ef40deb13ff1c5a817aa4764ab5891.tar.gz nuttx-43108346e9ef40deb13ff1c5a817aa4764ab5891.tar.bz2 nuttx-43108346e9ef40deb13ff1c5a817aa4764ab5891.zip |
Rename some functions and reshuffling some paramters
Diffstat (limited to 'nuttx/sched/group')
-rw-r--r-- | nuttx/sched/group/group_leave.c | 7 | ||||
-rw-r--r-- | nuttx/sched/group/group_setupstreams.c | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/nuttx/sched/group/group_leave.c b/nuttx/sched/group/group_leave.c index 36b84c836..bcf9e1dae 100644 --- a/nuttx/sched/group/group_leave.c +++ b/nuttx/sched/group/group_leave.c @@ -181,12 +181,7 @@ static inline void group_release(FAR struct task_group_s *group) #if CONFIG_NFILE_STREAMS > 0 /* Free resource held by the stream list */ -#if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \ - defined(CONFIG_MM_KERNEL_HEAP) - lib_releaselist(group->tg_streamlist); -#else - lib_releaselist(&group->tg_streamlist); -#endif + lib_stream_release(group); #endif /* CONFIG_NFILE_STREAMS */ #endif /* CONFIG_NFILE_DESCRIPTORS */ diff --git a/nuttx/sched/group/group_setupstreams.c b/nuttx/sched/group/group_setupstreams.c index 24254dcdd..72fc12dd6 100644 --- a/nuttx/sched/group/group_setupstreams.c +++ b/nuttx/sched/group/group_setupstreams.c @@ -78,12 +78,7 @@ int group_setupstreams(FAR struct task_tcb_s *tcb) /* Initialize file streams for the task group */ -#if (defined(CONFIG_BUILD_PROTECTED) || defined(CONFIG_BUILD_KERNEL)) && \ - defined(CONFIG_MM_KERNEL_HEAP) - lib_streaminit(tcb->cmn.group->tg_streamlist); -#else - lib_streaminit(&tcb->cmn.group->tg_streamlist); -#endif + lib_stream_initialize(tcb->cmn.group); /* fdopen to get the stdin, stdout and stderr streams. The following logic * depends on the fact that the library layer will allocate FILEs in order. |