pthread_equal()

compare thread IDs 

Function


SYNOPSIS

#include <pthread.h>

int pthread_equal(pthread_t t1, pthread_t2);


DESCRIPTION

The pthread_equal() function compares the thread IDs t1 and t2 to determine if they refer to the same thread. Behavior is undefined if t1 and/or t2 are not valid thread IDs.


PARAMETERS

t1 

Is the first thread ID.

t2 

Is the second thread ID.


RETURN VALUES

The pthread_equal() function returns a non-zero value if t1 and t2 refer to the same thread, or zero if they do not.


CONFORMANCE

POSIX P1003.1 (1996)


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_create(), pthread_self()


PTC MKS Toolkit 10.3 Documentation Build 39.