man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2014
 
 

pthread_equal(3C)

Name

pthread_equal - compare thread IDs

Synopsis

cc –mt [ flag... ] file... [ 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 TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Standard

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.