pthread_equal

Compares two thread IDs to see if they refer to the same thread.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

  #include <pthread.h>
   
  int   pthread_equal (
     pthread_t   t1,
     pthread_t   t2);
  

Parameters

t1

(IN) Specifies a thread ID.

t2

(IN) Specifies a thread ID.

Return Values

Returns nonzero if the two thread IDs refer to the same thread; otherwise, returns 0.

See Also