1pthread_equal(3C) Standard C Library Functions pthread_equal(3C)
2
3
4
6 pthread_equal - compare thread IDs
7
9 cc -mt [ flag... ] file... -lpthread [ library... ]
10 #include <pthread.h>
11
12 int pthread_equal(pthread_t t1, pthread_t t2);
13
14
16 The pthread_equal() function compares the thread IDs t1 and t2.
17
19 The pthread_equal() function returns a non-zero value if t1 and t2 are
20 equal. Otherwise, 0 is returned.
21
22
23 If t1 or t2 is an invalid thread ID, the behavior is undefined.
24
26 No errors are defined.
27
29 See attributes(5) for descriptions of the following attributes:
30
31
32
33
34 ┌─────────────────────────────┬─────────────────────────────┐
35 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
36 ├─────────────────────────────┼─────────────────────────────┤
37 │Interface Stability │Standard │
38 ├─────────────────────────────┼─────────────────────────────┤
39 │MT-Level │MT-Safe │
40 └─────────────────────────────┴─────────────────────────────┘
41
43 pthread_create(3C), pthread_self(3C), attributes(5), standards(5)
44
46 Solaris thread IDs do not require an equivalent function because the
47 thread_t structure is an unsigned int.
48
49
50
51SunOS 5.11 23 Mar 2005 pthread_equal(3C)