[Previous] [Contents] [Next]

pthread_equal()

Compare thread IDs

Synopsis:

#include <pthread.h>

int pthread_equal( pthread_t t1,
                   pthread_t t2 );

Library:

libc

Description:

The pthread_equal() function compares the thread IDs of t1 and t2. It doesn't check if they're valid thread IDs.

Returns:

A nonzero value
The t1 and t2 thread IDs are equal.
0
The thread IDs aren't equal.

Classification:

POSIX 1003.1 (Threads)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_create(), pthread_self()


[Previous] [Contents] [Next]