sched: Move tls_ndxset_t & tls_dtor_t to tls.h

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2021-07-18 21:01:24 +08:00 committed by Xiang Xiao
parent 95cb33dbf5
commit ad2f859170
2 changed files with 21 additions and 21 deletions

View File

@ -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.

View File

@ -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;