NAME
pthreadequal - compare thread IDs SYNOPSIS
#include
int pthreadequal(pthreadt t1, pthreadt t2); Compile and link with -pthread. DESCRIPTION The pthreadequal() function compares two thread identifiers. RETURN VALUE If the two thread IDs are equal, pthreadequal() returns a nonzero value; otherwise, it returns 0. ERRORS This function always succeeds. ATTRIBUTES For an explanation of the terms used in this section, see attributes(7). ┌────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├────────────────┼───────────────┼─────────┤
│pthreadequal() │ Thread safety │ MT-Safe │ └────────────────┴───────────────┴─────────┘ CONFORMING TO
POSIX.1-2001. NOTES The pthreadequal() function is necessary because thread IDs should be considered opaque: there is no portable way for applications to directly compare two pthreadt values. SEE ALSO pthreadcreate(3), pthreadself(3), pthreads(7) COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2009-03-30 PTHREADEQUAL(3)