pthread_equal(3pthread)


pthread_equal -- compare thread IDs

Synopsis

cc [options] -Kthread file

#include <pthread.h>

int pthread_equal(pthread_t t1, pthread_t t2);

Description

pthread_equal compares the thread IDs t1 and t2.

Return values

pthread_equal function returns a non-zero value if t1 and t2 are equal; otherwise, zero is returned.

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

Diagnostics

No errors are defined.

References

pthread_create(3pthread), pthread_self(3pthread), pthread(4)

Standards compliance

The Single UNIX Specification, Version 2; The Open Group.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004