Query: pthread_main_np
OS: mojave
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PTHREAD_MAIN_NP(3) BSD Library Functions Manual PTHREAD_MAIN_NP(3)NAMEpthread_main_np -- identify the initial threadSYNOPSIS#include <pthread.h> int pthread_main_np(void);DESCRIPTIONThe pthread_main_np() function is to identify the initial thread.RETURN VALUESThe 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.SEE ALSOpthread_create(3), pthread_equal(3), pthread_self(3)AUTHORSThis manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.BSDFebruary 13, 2003 BSD