[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


pthread_equal

Compares one thread identifier to another thread identifier.

Syntax

pthread_equal(
              t1,
              t2);
 


Argument Data Type Access

t1 opaque pthread_t read t2 opaque pthread_t read


C Binding

#include 

int pthread_equal ( pthread_t t1, pthread_t t2);

Arguments

t1
The first thread identifier to be compared.
t2
The second thread identifier to be compared.

Description

This routine compares one thread identifier to another thread identifier.

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

Return Values

Possible return values are as follows:
Return        Description

0 Values of t1 and t2 do not designate the same object. Non-zero Values of t1 and t2 designate the same object.



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]