Multithreaded Programming Guide

Return Values

Returns a nonzero value when tid1 and tid2 are equal; otherwise, zero is returned. When either tid1 or tid2 is an invalid thread identification number, the result is unpredictable.