From ed6d44f8b4a00f775815f8e484404589387ad69c Mon Sep 17 00:00:00 2001 From: Zeng Linggang Date: Wed, 20 May 2015 18:00:06 +0800 Subject: [PATCH] pthread_cancel.3: ATTRIBUTES: Note function that is thread-safe 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 Signed-off-by: Michael Kerrisk --- man3/pthread_cancel.3 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man3/pthread_cancel.3 b/man3/pthread_cancel.3 index 6317ede0d..1c8dd91a4 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