You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/07/19 11:27:06 UTC
[incubator-nuttx] 02/02: sched: Move tls_ndxset_t & tls_dtor_t to
tls.h
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit ad2f859170e49067a1903776cc970947e0f90271
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Sun Jul 18 21:01:24 2021 +0800
sched: Move tls_ndxset_t & tls_dtor_t to tls.h
Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
include/nuttx/sched.h | 21 ---------------------
include/nuttx/tls.h | 21 +++++++++++++++++++++
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h
index 8b12a13..36c7eba 100644
--- a/include/nuttx/sched.h
+++ b/include/nuttx/sched.h
@@ -348,27 +348,6 @@ struct pthread_cleanup_s
};
#endif
-/* type tls_ndxset_t & tls_dtor_t *******************************************/
-
-/* Smallest addressable type that can hold the entire configured number of
- * TLS data indexes.
- */
-
-#if CONFIG_TLS_NELEM > 0
-# if CONFIG_TLS_NELEM > 32
-# error Too many TLS elements
-# elif CONFIG_TLS_NELEM > 16
- typedef uint32_t tls_ndxset_t;
-# elif CONFIG_TLS_NELEM > 8
- typedef uint16_t tls_ndxset_t;
-# else
- typedef uint8_t tls_ndxset_t;
-# endif
-
-typedef CODE void (*tls_dtor_t)(FAR void *);
-
-#endif
-
/* struct dspace_s **********************************************************/
/* This structure describes a reference counted D-Space region.
diff --git a/include/nuttx/tls.h b/include/nuttx/tls.h
index d893059..5e655f7 100644
--- a/include/nuttx/tls.h
+++ b/include/nuttx/tls.h
@@ -61,6 +61,27 @@
* Public Types
****************************************************************************/
+/* type tls_ndxset_t & tls_dtor_t *******************************************/
+
+/* Smallest addressable type that can hold the entire configured number of
+ * TLS data indexes.
+ */
+
+#if CONFIG_TLS_NELEM > 0
+# if CONFIG_TLS_NELEM > 32
+# error Too many TLS elements
+# elif CONFIG_TLS_NELEM > 16
+ typedef uint32_t tls_ndxset_t;
+# elif CONFIG_TLS_NELEM > 8
+ typedef uint16_t tls_ndxset_t;
+# else
+ typedef uint8_t tls_ndxset_t;
+# endif
+
+typedef CODE void (*tls_dtor_t)(FAR void *);
+
+#endif
+
struct task_info_s
{
sem_t ta_sem;