[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    pthread_equal(3T) manual page Table of Contents

Name

pthread_equal - compare thread IDs

Synopsis

#include <pthread.h>

int pthread_equal(pthread_t t1, pthread_t t2);

MT-Level

MT-Safe

Description

The pthread_equal() function compares the thread ID s t1 and t2.

Return Values

If t1 and t2 are equal, pthread_equal() returns a non-zero value; otherwise, 0 is returned.

If either t1 or t2 is an invalid thread ID , the result is unpredictable.

See Also

pthread_create(3T) , pthread_self(3T)

Notes

Solaris thread IDs do not require an equal function because the thread_t structure is really an unsigned int.


Table of Contents