After research, We think pthread_cancel() is thread-safe. But, there is not marking of pthread_cancel() in glibc document. Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx> --- man3/pthread_cancel.3 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man3/pthread_cancel.3 b/man3/pthread_cancel.3 index 6317ede..1c8dd91 100644 --- a/man3/pthread_cancel.3 +++ b/man3/pthread_cancel.3 @@ -122,6 +122,19 @@ No thread with the ID could be found. .\" .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; +lb lb lb +l l l. +Interface Attribute Value +T{ +.BR pthread_cancel () +T} Thread safety MT-Safe +.TE + .SH CONFORMING TO POSIX.1-2001. .SH NOTES -- 1.9.3 -- 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