summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpkelsey <pkelsey@FreeBSD.org>2015-05-24 01:52:22 +0000
committerpkelsey <pkelsey@FreeBSD.org>2015-05-24 01:52:22 +0000
commitccae88f4a65d0085738956ee28569c818e9b6720 (patch)
tree67fd2d08213e555efe421b2012f3cd18d48dc279
parent19d4f6b6bfbe03501b3bfd21a0c445c08e12d564 (diff)
downloadFreeBSD-src-ccae88f4a65d0085738956ee28569c818e9b6720.zip
FreeBSD-src-ccae88f4a65d0085738956ee28569c818e9b6720.tar.gz
MFC r283093:
Added description of POSIX-specified behavior when invoked on a key from within that key's destructor.
-rw-r--r--share/man/man3/pthread_getspecific.35
1 files changed, 5 insertions, 0 deletions
diff --git a/share/man/man3/pthread_getspecific.3 b/share/man/man3/pthread_getspecific.3
index d59003f..3657e13 100644
--- a/share/man/man3/pthread_getspecific.3
+++ b/share/man/man3/pthread_getspecific.3
@@ -64,6 +64,11 @@ is undefined.
The
.Fn pthread_getspecific
function may be called from a thread-specific data destructor function.
+A call to
+.Fn pthread_getspecific
+for the thread-specific data key being destroyed returns the value NULL,
+unless the value is changed (after the destructor starts) by a call to
+.Fn pthread_setspecific .
.Sh RETURN VALUES
The
.Fn pthread_getspecific
OpenPOWER on IntegriCloud