OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / release / man3 / pthread_equal.3
1 .\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .\"
32 .\" Japanese Version Copyright (c) 2012  Akihiro MOTOKI
33 .\"         all rights reserved.
34 .\" Translated 2012-05-03, Akihiro MOTOKI <amotoki@gmail.com>
35 .\"
36 .TH PTHREAD_EQUAL 3 2014\-05\-23 Linux "Linux Programmer's Manual"
37 .SH 名前
38 pthread_equal \- スレッド ID を比較する
39 .SH 書式
40 .nf
41 \fB#include <pthread.h>\fP
42
43 \fBint pthread_equal(pthread_t \fP\fIt1\fP\fB, pthread_t \fP\fIt2\fP\fB);\fP
44 .sp
45 \fI\-pthread\fP でコンパイルしてリンクする。
46 .fi
47 .SH 説明
48 \fBpthread_equal\fP() 関数は 2 つのスレッド識別子の比較を行う。
49 .SH 返り値
50 \fBpthread_equal\fP() は、2 つのスレッド ID が等しければ 0 以外の値を返し、
51 そうでなければ 0 を返す。
52 .SH エラー
53 この関数は常に成功する。
54 .SH 属性
55 .SS "マルチスレッディング (pthreads(7) 参照)"
56 \fBpthread_equal\fP() 関数はスレッドセーフである。
57 .SH 準拠
58 POSIX.1\-2001.
59 .SH 注意
60 \fBpthread_equal\fP() 関数が必要なのは、
61 スレッド ID はその内部構造を意識すべきではないためである。
62 アプリケーションが 2 つの \fIpthread_t\fP の値を直接比較する場合、
63 移植性を確保できる形で比較する方法はない。
64 .SH 関連項目
65 \fBpthread_create\fP(3), \fBpthread_self\fP(3), \fBpthreads\fP(7)
66 .SH この文書について
67 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
68 である。プロジェクトの説明とバグ報告に関する情報は
69 http://www.kernel.org/doc/man\-pages/ に書かれている。