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.