pthread_equal(3) — Subroutines
NAME
pthread_equal − Compares one thread to another thread identifier.
SYNOPSIS
#include <pthread.h>
int pthread_equal(
pthread_t ∗thread1 ,
pthread_t ∗thread2 );
PARAMETERS
thread1The first thread identifier to be compared.
thread2The second thread identifier to be compared.
DESCRIPTION
This routine compares one thread identifier to another thread identifier. (This routine does not check whether the objects that correspond to the identifiers currently exist.) If the identifiers have values indicating that they designate the same object, 1 (true) is returned. If the values do not designate the same object, 0 (false) is returned.
This routine is implemented as a C macro.
RETURN VALUES
Possible return values are as follows:
| Return | Error | Description |
| 0 | Values of thread1 and thread2 do not designate the same object. | |
| 1 | Values of thread1 and thread2 do designate the same object. |