diff options
Diffstat (limited to 'lib/libpthread/man/pthread_key_delete.3')
-rw-r--r-- | lib/libpthread/man/pthread_key_delete.3 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libpthread/man/pthread_key_delete.3 b/lib/libpthread/man/pthread_key_delete.3 index 39fb19e..25f110f 100644 --- a/lib/libpthread/man/pthread_key_delete.3 +++ b/lib/libpthread/man/pthread_key_delete.3 @@ -49,12 +49,14 @@ The thread-specific data values associated with .Fa key need not be NULL at the time that .Fn pthread_key_delete -is called. It is the responsibility of the application to free any +is called. +It is the responsibility of the application to free any application storage or perform any cleanup actions for data structures related to the deleted key or associated thread-specific data in any threads; this cleanup can be done either before or after .Fn pthread_key_delete -is called. Any attempt to use +is called. +Any attempt to use .Fa key following the call to .Fn pthread_key_delete @@ -62,7 +64,8 @@ results in undefined behavior. .Pp The .Fn pthread_key_delete -function is callable from within destructor functions. Destructor functions +function is callable from within destructor functions. +Destructor functions are not invoked by .Fn pthread_key_delete . Any destructor function that may have been associated with @@ -71,7 +74,8 @@ will no longer be called upon thread exit. .Sh RETURN VALUES If successful, the .Fn pthread_key_delete -function will return zero. Otherwise an error number will be returned to +function will return zero. +Otherwise an error number will be returned to indicate the error. .Sh ERRORS .Fn pthread_key_delete |