summaryrefslogtreecommitdiff
path: root/tsd.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-31 05:27:17 +0000
committerrpj <rpj>1998-07-31 05:27:17 +0000
commit73809519e368dcfe41ad403fec70ac73534ee3f1 (patch)
treec04ce409576d6fafa5e7ccf67d67538a4d7523b0 /tsd.c
parentb164b0f0bff12369fa19118f7b87c18d7871095f (diff)
Fri Jul 31 14:00:29 1998 Ross Johnson <rpj@swan.canberra.edu.au>
* cleanup.c (_pthread_destructor_pop): Implement. Removes destructors associated with a key without executing them. (_pthread_destructor_pop_all): Add FIXME comment. * tsd.c (pthread_key_delete): Add call to _pthread_destructor_pop().
Diffstat (limited to 'tsd.c')
-rw-r--r--tsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tsd.c b/tsd.c
index e573d3d..d1d2deb 100644
--- a/tsd.c
+++ b/tsd.c
@@ -44,7 +44,8 @@ pthread_getspecific(pthread_key_t key)
int
pthread_key_delete(pthread_key_t key)
{
- /* FIXME: We must remove any associated destructors here. */
+ /* Remove this key's destructors. */
+ _pthread_destructor_pop(key);
return (TlsFree(key) == FALSE) ? EINVAL : 0;
}