mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
sched/spawn: Support task_spawnattr_[set|get]stacksize in kernel mode
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
55083b31a9
commit
b9b032af72
@@ -106,12 +106,10 @@ int exec_spawn(FAR const char *filename, FAR char * const *argv,
|
||||
bin->priority = attr->priority;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
if (attr->stacksize > 0)
|
||||
{
|
||||
bin->stacksize = attr->stacksize;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Disable pre-emption so that the executed module does
|
||||
|
||||
Reference in New Issue
Block a user