diff options
author | rpj <rpj> | 1998-07-31 05:27:17 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-07-31 05:27:17 +0000 |
commit | 73809519e368dcfe41ad403fec70ac73534ee3f1 (patch) | |
tree | c04ce409576d6fafa5e7ccf67d67538a4d7523b0 /tsd.c | |
parent | b164b0f0bff12369fa19118f7b87c18d7871095f (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |