1PTHREAD_EQUAL(3) Linux Programmer's Manual PTHREAD_EQUAL(3)
2
3
4
6 pthread_equal - compare thread IDs
7
9 #include <pthread.h>
10
11 int pthread_equal(pthread_t t1, pthread_t t2);
12
13 Compile and link with -pthread.
14
16 The pthread_equal() function compares two thread identifiers.
17
19 If the two thread IDs are equal, pthread_equal() returns a nonzero
20 value; otherwise, it returns 0.
21
23 This function always succeeds.
24
26 POSIX.1-2001.
27
29 The pthread_equal() function is necessary because thread IDs should be
30 considered opaque: there is no portable way for applications to
31 directly compare two pthread_t values.
32
34 pthread_create(3), pthread_self(3), pthreads(7)
35
37 This page is part of release 3.53 of the Linux man-pages project. A
38 description of the project, and information about reporting bugs, can
39 be found at http://www.kernel.org/doc/man-pages/.
40
41
42
43Linux 2009-03-30 PTHREAD_EQUAL(3)