From b164b0f0bff12369fa19118f7b87c18d7871095f Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 31 Jul 1998 02:21:28 +0000 Subject: (pthread_key_delete): Add FIXME comment. --- ChangeLog | 1 + tsd.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 34eabe4..3e7956e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ Fri Jul 31 00:05:45 1998 Ross Johnson * tsd.c (pthread_key_create): Update to properly associate the destructor routine with the key. + (pthread_key_delete): Add FIXME comment. * exit.c (_pthread_vacuum): Add call to _pthread_destructor_pop_all(). diff --git a/tsd.c b/tsd.c index 4a83fd9..e573d3d 100644 --- a/tsd.c +++ b/tsd.c @@ -44,5 +44,7 @@ pthread_getspecific(pthread_key_t key) int pthread_key_delete(pthread_key_t key) { + /* FIXME: We must remove any associated destructors here. */ + return (TlsFree(key) == FALSE) ? EINVAL : 0; } -- cgit v1.2.3