pthread_equal(3T) DG/UX 5.4R3.00 pthread_equal(3T)
NAME
pthreadequal - compare thread IDs for equality
SYNOPSIS
#include <pthread.h>
int pthreadequal(pthreadt t1, pthreadt t2);
where:
t1 Thread ID #1
t2 Thread ID #2
DESCRIPTION
This function compares the thread IDs t1 and t2 for equality. In
fact, this is the only portable way to compare two thread IDs.
DIAGNOSTICS
Returns
The pthreadequal() function returns a non-zero value if t1 and t2
are equal; otherwise it returns zero.
If either t1 or t2 is not a valid thread ID, the behavior is
undefined. In the current DG/UX implementation, this case is
impossible.
SEE ALSO
pthreadcreate(3T), pthreadself(3T), dgpthreadgetlwpid(3T).
NOTES
The only other portable operations on thread IDs are assignment and
retrieval using a call to pthreadself().
Refer to pthreadself(3T) NOTES for a more detailed discussion on
proper use of thread IDs.
Licensed material--property of copyright holder(s) 1