From 73809519e368dcfe41ad403fec70ac73534ee3f1 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 31 Jul 1998 05:27:17 +0000 Subject: Fri Jul 31 14:00:29 1998 Ross Johnson * 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(). --- tsd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tsd.c') 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; } -- cgit v1.2.3