sched/env: add tg_envc in task_group_s to avoid some loops in code

this commit optimize the env api speed

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
This commit is contained in:
wangbowen6
2023-02-09 14:59:03 +08:00
committed by Petro Karashchenko
parent dd0f389e72
commit d77b53957c
10 changed files with 37 additions and 26 deletions
+2 -1
View File
@@ -496,7 +496,8 @@ struct task_group_s
#ifndef CONFIG_DISABLE_ENVIRON
/* Environment variables **************************************************/
FAR char **tg_envp; /* Allocated environment strings */
FAR char **tg_envp; /* Allocated environment strings */
ssize_t tg_envc; /* Number of environment strings */
#endif
#ifndef CONFIG_DISABLE_POSIX_TIMERS