PTHREAD_EQUAL(3) Library Functions Manual PTHREAD_EQUAL(3)

pthread_equalcompare thread IDs

#include <pthread.h>

int pthread_equal(pthread_t t1, pthread_t t2);

This function compares the thread IDs t1 and t2 .

The pthread_equal() function returns a non-zero value if t1 and t2 are equal; otherwise, zero is returned.

If either or are not valid thread IDs, the behaviour is undefined.

No errors are defined.

The function will not return an error code of [EINTR].

None.

None.

None.

pthread_create(3) , pthread_self(3) , <pthread.h> .

Derived from the POSIX Threads Extension (1003.1c-1995)

February 1997 posix.fail