mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
sched/tls: inline group info in flat mode to improve performance
inline group info in flat mode to improve the task create/destroy performance Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/net/net.h>
|
||||
#include <nuttx/mm/map.h>
|
||||
#include <nuttx/tls.h>
|
||||
|
||||
#include <arch/arch.h>
|
||||
|
||||
@@ -401,8 +402,6 @@ struct stackinfo_s
|
||||
* the struct task_group_s is free.
|
||||
*/
|
||||
|
||||
struct task_info_s;
|
||||
|
||||
#ifndef CONFIG_DISABLE_PTHREAD
|
||||
struct join_s; /* Forward reference */
|
||||
/* Defined in sched/pthread/pthread.h */
|
||||
@@ -480,6 +479,9 @@ struct task_group_s
|
||||
|
||||
/* Thread local storage ***************************************************/
|
||||
|
||||
#ifndef CONFIG_MM_KERNEL_HEAP
|
||||
struct task_info_s tg_info_;
|
||||
#endif
|
||||
FAR struct task_info_s *tg_info;
|
||||
|
||||
/* POSIX Signal Control Fields ********************************************/
|
||||
|
||||
+8
-1
@@ -27,7 +27,14 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <nuttx/arch.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <arch/arch.h>
|
||||
#include <arch/types.h>
|
||||
|
||||
#include <nuttx/compiler.h>
|
||||
#include <nuttx/cache.h>
|
||||
#include <nuttx/atexit.h>
|
||||
#include <nuttx/fs/fs.h>
|
||||
#include <nuttx/list.h>
|
||||
|
||||
Reference in New Issue
Block a user