pthread_equal(3)

pthread_equal3

Compare thread ids

Usage

#include <pthread.h>

int

pthread_equal(pthread_t t1, pthread_t t2);

Overview

The pthread_equal() function compares the thread IDs t1 and t2.

Return values

The pthread_equal() function will return non-zero if the thread IDs t1 and t2 correspond to the same thread, otherwise it will return zero.

Errors

None.

Releases

149 releases since Mac OS X 10.2; the text changed 2 times.

  1. 10.2–10.4.11
  2. 10.5–10.11.6
  3. 10.12–26.5

Standards

The pthread_equal() function conforms to ISO/IEC 9945-1:1996 (“POSIX.1”).

From libpthread 539.100.4 in macOS 26.5. Parsed by carta from the page's mdoc source.