Content-type: text/html Man page of pthread_equal

pthread_equal

Section: Standard C Library Functions (3C)
Updated: 23 Mar 2005
Index Return to Main Contents
 

NAME

pthread_equal - compare thread IDs  

SYNOPSIS

cc -mt [ flag... ] file... -lpthread [ library... ]
#include <pthread.h>

int pthread_equal(pthread_t t1, pthread_t t2);  

DESCRIPTION

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

RETURN VALUES

The pthread_equal() function returns a non-zero value if t1 and t2 are equal. Otherwise, 0 is returned.

If t1 or t2 is an invalid thread ID, the behavior is undefined.  

ERRORS

No errors are defined.  

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStandard
MT-LevelMT-Safe

 

SEE ALSO

pthread_create(3C), pthread_self(3C), attributes(5), standards(5)  

NOTES

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


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
ERRORS
ATTRIBUTES
SEE ALSO
NOTES

This document was created by man2html, using the manual pages.
Time: 02:37:20 GMT, October 02, 2010