summaryrefslogtreecommitdiff
path: root/components/pthreads/pthread_tls.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/pthreads/pthread_tls.c')
-rw-r--r--components/pthreads/pthread_tls.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/components/pthreads/pthread_tls.c b/components/pthreads/pthread_tls.c
index 5dacc1e1f2..0fda158a39 100644
--- a/components/pthreads/pthread_tls.c
+++ b/components/pthreads/pthread_tls.c
@@ -1,13 +1,7 @@
#include <pthread.h>
#include "pthread_internal.h"
-struct _pthread_key_data
-{
- int is_used;
- void* (*destructor)(void* parameter);
-};
-typedef struct _pthread_key_data _pthread_key_data_t;
-static _pthread_key_data_t _thread_keys[PTHREAD_KEY_MAX];
+_pthread_key_data_t _thread_keys[PTHREAD_KEY_MAX];
void pthread_key_system_init()
{
@@ -82,3 +76,4 @@ int pthread_key_delete(pthread_key_t key)
return 0;
}
+