pthread_equal(3T) manual page
Table of Contents
pthread_equal - compare thread IDs
#include <pthread.h>
int
pthread_equal(pthread_t t1, pthread_t t2);
MT-Safe
The
pthread_equal() function compares the thread ID
s t1 and t2.
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.
pthread_create(3T)
, pthread_self(3T)
Solaris
thread IDs
do not require an equal function because the thread_t structure
is really an unsigned int.
Table of Contents