Standard C Library Functions pthread_equal(3C)
NAME
pthread_equal - compare thread IDs
SYNOPSIS
cc -mt [ flag... ] file... -lpthread [ library... ]
#include
int pthread_equal(pthread_t t1, pthread_t t2);
DESCRIPTION
The pthread_equal() function compares the thread IDs t1 and
t2.RETURN VALUES
The pthread_equal() function returns a non-zero value if t1
and t2 are equal. Otherwise, 0 is returned.If t1 or t2 is an invalid thread ID, the behavior is unde-
fined.ERRORS
No errors are defined.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
| Standard | See standards(5). ||_____________________________|_____________________________|
SEE ALSO
pthread_create(3C), pthread_self(3C), attributes(5), stan-
dards(5) NOTES Solaris thread IDs do not require an equivalent functionbecause the thread_t structure is an unsigned int.
SunOS 5.11 Last change: 23 Mar 2005 1