PTHREAD_MAIN_NP(3) | Library Functions Manual | PTHREAD_MAIN_NP(3) |
pthread_main_np
—
identify the main thread
#include
<pthread.h>
#include <pthread_np.h>
int
pthread_main_np
(void);
The
pthread_main_np
()
function identifies the main thread.
The pthread_main_np
() function
returns:
The pthread_main_np
() function is
non-portable and may not be supported with the above semantics on other
POSIX systems.
June 5, 2013 | OpenBSD-current |