On 05/27/2015 12:13 PM, Zeng Linggang wrote: > After research, We think pthread_cleanup_push() and > pthread_cleanup_pop() are thread-safe. But, there > are not markings of them in glibc document. Thanks, Zeng Linggang. Applied. Cheers, Michael > Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx> > --- > man3/pthread_cleanup_push.3 | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/man3/pthread_cleanup_push.3 b/man3/pthread_cleanup_push.3 > index 43ac9b9..2b7fe05 100644 > --- a/man3/pthread_cleanup_push.3 > +++ b/man3/pthread_cleanup_push.3 > @@ -124,6 +124,20 @@ These functions do not return a value. > There are no errors. > .\" SH VERSIONS > .\" Available since glibc 2.0 > +.SH ATTRIBUTES > +For an explanation of the terms used in this section, see > +.BR attributes (7). > +.TS > +allbox; > +lbw23 lb lb > +l l l. > +Interface Attribute Value > +T{ > +.BR pthread_cleanup_push (), > +.BR pthread_cleanup_pop () > +T} Thread safety MT-Safe > +.TE > + > .SH CONFORMING TO > POSIX.1-2001. > .SH NOTES > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html