summaryrefslogtreecommitdiff
path: root/components/pthreads/pthread_tls.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-11-16 09:54:26 +0000
committerbernard.xiong <[email protected]>2010-11-16 09:54:26 +0000
commitecfc8e76a9a14b470000c0f9bbfd1ee03ecc71bd (patch)
tree8cc78728c14742c2ece4f23e4107b49bbf1f966c /components/pthreads/pthread_tls.c
parent1c67fc851a0773dda7363065d13aa4ddf1330d38 (diff)
add more pthreads cancel operation.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1050 bbd45198-f89e-11dd-88c7-29a3b14d5316
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;
}
+