pthread_equal(3T)
NAME
pthread_equal − compare thread IDs
SYNOPSIS
#include <pthread.h>
int pthread_equal(pthread_t t1, pthread_t t2);
DESCRIPTION
The pthread_equal() function compares the thread IDs t1 and t2.
RETURN VALUES
If t1 and t2 are equal, pthread_equal() returns a non-zero value; otherwise, 0 is returned.
If either t1 or t2 is an invalid thread ID, the result is unpredictable.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| MT-Level | MT-Safe |
SEE ALSO
pthread_create(3T), pthread_self(3T), attributes(5)
NOTES
Solaris thread IDs do not require an equal function because the thread_t structure is really an unsigned int.
SunOS 5.6 — Last change: 30 Dec 1996