Section: Linux Programmer's Manual (3)
Return to Main Contents
pthread_equal - compare thread IDs
int pthread_equal(pthread_t t1, pthread_t t2);
Compile and link with -pthread.
function compares two thread identifiers.
If the two thread IDs are equal,
returns a nonzero value; otherwise, it returns 0.
This function always succeeds.
function is necessary because thread IDs should be considered opaque:
there is no portable way for applications to directly compare two
This page is part of release 3.54 of the Linux
A description of the project,
and information about reporting bugs,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 05:30:23 GMT, January 19, 2018