pthread_equal

Synopsis

#include <pthread.h>

int pthread_equal(pthread_t t1, pthread_t t2);

Status

Implemented

Conformance

IEEE Std 1003.1-2017

Description

The pthread_equal() function shall compare the thread IDs t1 and t2.

Return value

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

If either t1 or t2 are not valid thread IDs, the behavior is undefined.

Errors

No errors are defined.

The pthread_equal() function shall not return an error code of EINTR.

POSIX deviations

No POSIX deviations discovered.