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


pthread_equal

Compares one thread identifier to another thread identifier.

Syntax

equal =  pthread_equal (thread1, thread2)
 


Argument Data Type Access

equal Boolean write thread1 opaque pthread_t read thread2 opaque pthread_t read


C Binding

int
pthread_equal (
pthread_t thread1,
pthread_t thread2);

Arguments

equal
Boolean value that specifies whether thread1 and thread2 designate the same object.
thread1
The first thread identifier to be compared.
thread2
The 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 designate the same object.



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