pthread_main_np(3)

pthread_main_np3

Identify the initial thread

Usage

#include <pthread.h>

int

pthread_main_np(void);

Overview

The pthread_main_np() function is to identify the initial thread.

Return values

The pthread_main_np() function returns 1 if the calling thread is the initial thread, 0 if the calling thread is not the initial thread, and -1 if the thread's initialization has not yet completed.

Releases

73 releases since OS X 10.11; the text changed 1 time.

  1. 10.11–10.11.6
  2. 10.12–26.5

Authors

This manual page was written by Alexey Zelkin ⟨[email protected]⟩.

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