svn commit: r283977 - stable/10/share/man/man3

Patrick Kelsey pkelsey at FreeBSD.org
Thu Jun 4 04:50:53 UTC 2015


Author: pkelsey
Date: Thu Jun  4 04:50:52 2015
New Revision: 283977
URL: https://svnweb.freebsd.org/changeset/base/283977

Log:
  MFC r283652:
  
  Provide an unambiguous description of the potential hazard in calling
  pthread_setspecific(3) from a key destructor.

Modified:
  stable/10/share/man/man3/pthread_setspecific.3

Modified: stable/10/share/man/man3/pthread_setspecific.3
==============================================================================
--- stable/10/share/man/man3/pthread_setspecific.3	Thu Jun  4 02:50:13 2015	(r283976)
+++ stable/10/share/man/man3/pthread_setspecific.3	Thu Jun  4 04:50:52 2015	(r283977)
@@ -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