sched/task: save argument counter to avoid limit check

The maximum startup parameters have been checked accordingly in nxtask_setup_stackargs(),
let us save argument counter to avoid limit check.

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an
2024-03-05 12:11:47 +08:00
committed by Xiang Xiao
parent 0902231deb
commit 8592e7e009
7 changed files with 27 additions and 46 deletions
+2 -1
View File
@@ -122,7 +122,8 @@ struct pthread_atfork_s
struct task_info_s
{
mutex_t ta_lock;
FAR char **argv; /* Name+start-up parameters */
int ta_argc; /* Number of arguments */
FAR char **ta_argv; /* Name+start-up parameters */
#if CONFIG_TLS_TASK_NELEM > 0
uintptr_t ta_telem[CONFIG_TLS_TASK_NELEM]; /* Task local storage elements */
#endif