pthread_equal.3t (2010 09)
p
pthread_equal(3T) pthread_equal(3T)
(Pthread Library)
NAME
pthread_equal() - compare two thread identifiers
SYNOPSIS
#include <pthread.h>
int pthread_equal(
pthread_t t1,
pthread_t t2
);
PARAMETERS
t1 First thread ID to be compared.
t2 Second thread ID to be compared.
DESCRIPTION
pthread_equal()
compares the thread IDs t1 and t2 . Thread IDs are opaque data types. They
should be compared only with this function.
RETURN VALUE
pthread_equal() returns a nonzero value if the two thread IDs are equal; otherwise, zero is returned.
This function does not verify that t1 or t2 are valid thread IDs.
ERRORS
None.
AUTHOR
pthread_equal() was derived from the IEEE POSIX P1003.1c standard.
SEE ALSO
pthread_create(3T), pthread_self(3T).
STANDARDS CONFORMANCE
pthread_equal(): POSIX 1003.1c.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1