HELPLIB.HLB  —  POSIX Threads, PTHREAD routines, pthread_equal
    Compares one thread identifier to another thread identifier.

1  –  C Binding

    #include <pthread.h>

    int
    pthread_equal (
             pthread_t   t1,
             pthread_t   t2);

2  –  Arguments

 t1

    The first thread identifier to be compared.

 t2

    The second thread identifier to be compared.

3  –  Description

    This routine compares one thread identifier to another thread
    identifier.

    If either t1 or t2 are not valid thread identifiers, this
    routine's behavior is undefined.

4  –  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.
Close Help