cc -mt [ flag... ] file... -lpthread [ -lrt library... ] #include <pthread.h>
The pthread_equal() function compares the thread IDs t1 and t2.
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 undefined.
No errors are defined.
See attributes(5) for descriptions of the following attributes:
pthread_create(3THR), pthread_self(3THR), attributes(5)
Solaris thread IDs do not require an equivalent function because the thread_t structure is an unsigned int.