svn commit: r283652 - head/share/man/man3

Patrick Kelsey pkelsey at FreeBSD.org
Thu May 28 16:18:42 UTC 2015


Author: pkelsey
Date: Thu May 28 16:18:41 2015
New Revision: 283652
URL: https://svnweb.freebsd.org/changeset/base/283652

Log:
  Provide an unambiguous description of the potential hazard in calling
  pthread_setspecific(3) from a key destructor.
  
  Reviewed by: jhb
  Approved by: jmallett (mentor)
  MFC after: 3 days

Modified:
  head/share/man/man3/pthread_setspecific.3

Modified: head/share/man/man3/pthread_setspecific.3
==============================================================================
--- head/share/man/man3/pthread_setspecific.3	Thu May 28 16:16:29 2015	(r283651)
+++ head/share/man/man3/pthread_setspecific.3	Thu May 28 16:18:41 2015	(r283652)
@@ -67,7 +67,10 @@ is undefined.
 The
 .Fn pthread_setspecific
 function may be called from a thread-specific data destructor function,
-however this may result in lost storage or infinite loops.
+however this may result in lost storage or infinite loops if doing so
+causes non-NULL key values to remain after
+.Bq PTHREAD_DESTRUCTOR_ITERATIONS
+iterations of destructor calls have been made.
 .Sh RETURN VALUES
 If successful, the
 .Fn pthread_setspecific


More information about the svn-src-all mailing list