summaryrefslogtreecommitdiff
path: root/components/libc/pthreads/pthread_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/pthreads/pthread_internal.h')
-rw-r--r--components/libc/pthreads/pthread_internal.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/components/libc/pthreads/pthread_internal.h b/components/libc/pthreads/pthread_internal.h
index 3e94e867d7..304701584f 100644
--- a/components/libc/pthreads/pthread_internal.h
+++ b/components/libc/pthreads/pthread_internal.h
@@ -30,6 +30,7 @@ struct _pthread_key_data
};
typedef struct _pthread_key_data _pthread_key_data_t;
+#define PTHREAD_NUM_MAX 32
#define PTHREAD_MAGIC 0x70746873
struct _pthread_data
{
@@ -56,17 +57,7 @@ struct _pthread_data
};
typedef struct _pthread_data _pthread_data_t;
-rt_inline _pthread_data_t *_pthread_get_data(pthread_t thread)
-{
- _pthread_data_t *ptd;
- RT_ASSERT(thread != RT_NULL);
-
- ptd = (_pthread_data_t *)thread->user_data;
- RT_ASSERT(ptd != RT_NULL);
- RT_ASSERT(ptd->magic == PTHREAD_MAGIC);
-
- return ptd;
-}
+_pthread_data_t *_pthread_get_data(pthread_t thread);
int clock_time_to_tick(const struct timespec *time);