PTHREAD_EQUAL(3) Library Functions Manual PTHREAD_EQUAL(3)
NAME
pthread_equal —
compare thread IDs
SYNOPSIS
#include <pthread.h> int pthread_equal(pthread_t t1, pthread_t t2);
DESCRIPTION
This function compares the thread IDs t1 and t2 .
RETURN VALUE
The pthread_equal() function returns a non-zero value if t1 and t2 are equal; otherwise, zero is returned.
If either t1 or t2 are not valid thread IDs, the behaviour is undefined.
ERRORS
No errors are defined.
The pthread_equal() function will not return an error code of [EINTR].
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
DERIVATION
Derived from the POSIX Threads Extension (1003.1c-1995)
February 1997 posix.fail