diff options
author | rpj <rpj> | 1998-10-14 19:51:06 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-10-14 19:51:06 +0000 |
commit | 424ca52423ca124e4618e0e7a0dba22ea989ef09 (patch) | |
tree | b63bdf933f381923fe99a09177c4acd07496f5bb /tsd.c | |
parent | 8c4d7f6bc1d365906724c92e4143fa021bf8a757 (diff) |
Thu Oct 15 11:53:21 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* global.c (_pthread_tsd_key_table): Fix declaration.
* implement.h(_pthread_TSD_keys_TlsIndex): Add missing extern.
(_pthread_tsd_mutex): Ditto.
* create.c (_pthread_start_call): Fix "keys" array declaration.
Add comment.
* tsd.c (pthread_setspecific): Fix type declaration and cast.
(pthread_getspecific): Ditto.
* cleanup.c (_pthread_destructor_run_all): Declare missing loop
counter.
Diffstat (limited to 'tsd.c')
-rw-r--r-- | tsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -81,7 +81,7 @@ pthread_key_create(pthread_key_t *key, void (*destructor)(void *)) int pthread_setspecific(pthread_key_t key, void *value) { - void ** keys; + LPVOID keys; int inuse; /* CRITICAL SECTION */ @@ -95,7 +95,7 @@ pthread_setspecific(pthread_key_t key, void *value) if (! inuse) return EINVAL; - keys = (void **) TlsGetValue(_pthread_TSD_keys_TlsIndex); + keys = TlsGetValue(_pthread_TSD_keys_TlsIndex); keys[key] = value; return 0; @@ -104,7 +104,7 @@ pthread_setspecific(pthread_key_t key, void *value) void * pthread_getspecific(pthread_key_t key) { - void ** keys; + LPVOID keys; int inuse; /* CRITICAL SECTION */ @@ -118,7 +118,7 @@ pthread_getspecific(pthread_key_t key) if (! inuse) return EINVAL; - keys = (void **) TlsGetValue(_pthread_TSD_keys_TlsIndex); + keys = TlsGetValue(_pthread_TSD_keys_TlsIndex); return keys[key]; } |