summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-31 02:21:28 +0000
committerrpj <rpj>1998-07-31 02:21:28 +0000
commitb164b0f0bff12369fa19118f7b87c18d7871095f (patch)
tree1c37da180dba2b1e75f03197fe41595e13aa94ad
parentcc1a70f50a246ad33ecbc8f73d0bbc67ea89f1a7 (diff)
(pthread_key_delete): Add FIXME comment.
-rw-r--r--ChangeLog1
-rw-r--r--tsd.c2
2 files changed, 3 insertions, 0 deletions
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 <rpj@ixobrychus.canberra.edu.au>
* 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;
}