DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

pthread_equal(PTHREAD)


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(PTHREAD), pthread_self(PTHREAD), pthread(F)

Standards compliance

The Single UNIX Specification, Version 2; The Open Group.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005