Re: [PATCH] pthread_attr_init.3: ATTRIBUTES: Note functions that are thread-safe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/20/2015 12:00 PM, Zeng Linggang wrote:
> After research, We think pthread_attr_init() and pthread_attr_destroy()
> are thread-safe. But, there are not markings of pthread_attr_init()
> and pthread_attr_destroy() in glibc document.
> 
> Signed-off-by: Zeng Linggang <zenglg.jy@xxxxxxxxxxxxxx>

Thanks, Zeng Linggang. Patch applied.

Cheers,

Michael


> ---
>  man3/pthread_attr_init.3 | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/man3/pthread_attr_init.3 b/man3/pthread_attr_init.3
> index 3875519..21745c0 100644
> --- a/man3/pthread_attr_init.3
> +++ b/man3/pthread_attr_init.3
> @@ -76,6 +76,20 @@ error for
>  on Linux these functions always succeed
>  (but portable and future-proof applications should nevertheless
>  handle a possible error return).
> +.SH ATTRIBUTES
> +For an explanation of the terms used in this section, see
> +.BR attributes (7).
> +.TS
> +allbox;
> +lbw22 lb lb
> +l l l.
> +Interface	Attribute	Value
> +T{
> +.BR pthread_attr_init (),
> +.BR pthread_attr_destroy ()
> +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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux