Manual Pages — PTHREAD_EQUAL
– compare thread IDs
POSIX Threads Library (libpthread, -lpthread)
pthread_equal(pthread_t t1, pthread_t t2)
function compares the thread IDs
function will return non-zero if the thread IDs
correspond to the same thread, otherwise it will return zero.
function conforms to
IEEE Std 1003.1-96 ("POSIX.1").
||April 4, 1996
any comments about this manual page service to
|| This philosophy, in the hands of amateurs, leads to inexplicably
mind-numbing botches like the existence of two programs, “head”
and “tail,” which print the first part or the last part of a file, depending. Even though their operations are duals of one another, “head”
and “tail” are different programs, written by different authors, and
take different options!
— The Unix Haters' handbook